Merge pull request #485 from ONLYOFFICE/release/v7.2.0
Merge release/v7.2.0 into develop
This commit is contained in:
commit
bd4908d7c8
4
.github/workflows/4testing-build.yml
vendored
4
.github/workflows/4testing-build.yml
vendored
@ -55,6 +55,7 @@ jobs:
|
|||||||
REPO_URL=${{ secrets.REPO_URL }}
|
REPO_URL=${{ secrets.REPO_URL }}
|
||||||
if [[ ${{ env.RELEASE_VERSION }} == v99.* ]]; then
|
if [[ ${{ env.RELEASE_VERSION }} == v99.* ]]; then
|
||||||
REPO_URL=${{ secrets.UNSTABLE_REPO_URL }}
|
REPO_URL=${{ secrets.UNSTABLE_REPO_URL }}
|
||||||
|
DEVELOP_BUILD=true
|
||||||
fi
|
fi
|
||||||
PACKAGE_URL_CHECK=${REPO_URL}${{ matrix.edition }}_"$PACKAGE_VERSION"_${ARCH}.deb
|
PACKAGE_URL_CHECK=${REPO_URL}${{ matrix.edition }}_"$PACKAGE_VERSION"_${ARCH}.deb
|
||||||
STATUS=$(curl -s -o /dev/null -w "%{http_code}\n" "${PACKAGE_URL_CHECK}")
|
STATUS=$(curl -s -o /dev/null -w "%{http_code}\n" "${PACKAGE_URL_CHECK}")
|
||||||
@ -63,7 +64,7 @@ jobs:
|
|||||||
PLATFORMS+=(linux/${ARCH},)
|
PLATFORMS+=(linux/${ARCH},)
|
||||||
BUILD_PLATFORMS=$( echo ${PLATFORMS[@]} | sed 's/ //g' | sed 's/\(.*\),/\1/' )
|
BUILD_PLATFORMS=$( echo ${PLATFORMS[@]} | sed 's/ //g' | sed 's/\(.*\),/\1/' )
|
||||||
else
|
else
|
||||||
echo "${ARCH} in not avalivable"
|
echo "Х ${ARCH} in not avalivable"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
PACKAGE_URL_BUILD=$( echo ${PACKAGE_URL_CHECK} | sed -e "s/${PACKAGE_VERSION}_.*.deb/${PACKAGE_VERSION}_TARGETARCH.deb/g" )
|
PACKAGE_URL_BUILD=$( echo ${PACKAGE_URL_CHECK} | sed -e "s/${PACKAGE_VERSION}_.*.deb/${PACKAGE_VERSION}_TARGETARCH.deb/g" )
|
||||||
@ -85,6 +86,7 @@ jobs:
|
|||||||
TAG=$DOCKER_TAG \
|
TAG=$DOCKER_TAG \
|
||||||
PLATFORM=$BUILD_PLATFORMS \
|
PLATFORM=$BUILD_PLATFORMS \
|
||||||
COMPANY_NAME=${{ env.COMPANY_NAME }} \
|
COMPANY_NAME=${{ env.COMPANY_NAME }} \
|
||||||
|
DEVELOP_BUILD=$DEVELOP_BUILD \ ### If value $DEVELOP_BUILD is present add another tag for develop build
|
||||||
docker buildx bake \
|
docker buildx bake \
|
||||||
-f docker-bake.hcl ${{ matrix.images }} \
|
-f docker-bake.hcl ${{ matrix.images }} \
|
||||||
--push
|
--push
|
||||||
|
@ -38,10 +38,17 @@ variable "PACKAGE_URL" {
|
|||||||
default = ""
|
default = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "DEVELOP_BUILD" {
|
||||||
|
default = ""
|
||||||
|
}
|
||||||
|
|
||||||
target "documentserver" {
|
target "documentserver" {
|
||||||
target = "documentserver"
|
target = "documentserver"
|
||||||
dockerfile= "${DOCKERFILE}"
|
dockerfile= "${DOCKERFILE}"
|
||||||
tags = ["docker.io/${COMPANY_NAME}/${PREFIX_NAME}${PRODUCT_NAME}${PRODUCT_EDITION}:${TAG}"]
|
tags = [
|
||||||
|
"docker.io/${COMPANY_NAME}/${PREFIX_NAME}${PRODUCT_NAME}${PRODUCT_EDITION}:${TAG}",
|
||||||
|
notequal("",DEVELOP_BUILD) ? "docker.io/${COMPANY_NAME}/${PREFIX_NAME}${PRODUCT_NAME}${PRODUCT_EDITION}:latest": "",
|
||||||
|
]
|
||||||
platforms = ["${PLATFORM}"]
|
platforms = ["${PLATFORM}"]
|
||||||
args = {
|
args = {
|
||||||
"PRODUCT_EDITION": "${PRODUCT_EDITION}"
|
"PRODUCT_EDITION": "${PRODUCT_EDITION}"
|
||||||
|
@ -73,7 +73,7 @@ NGINX_CONFIG_PATH="/etc/nginx/nginx.conf"
|
|||||||
NGINX_WORKER_PROCESSES=${NGINX_WORKER_PROCESSES:-1}
|
NGINX_WORKER_PROCESSES=${NGINX_WORKER_PROCESSES:-1}
|
||||||
NGINX_WORKER_CONNECTIONS=${NGINX_WORKER_CONNECTIONS:-$(ulimit -n)}
|
NGINX_WORKER_CONNECTIONS=${NGINX_WORKER_CONNECTIONS:-$(ulimit -n)}
|
||||||
|
|
||||||
JWT_ENABLED=${JWT_ENABLED:-false}
|
JWT_ENABLED=${JWT_ENABLED:-true}
|
||||||
|
|
||||||
# validate user's vars before usinig in json
|
# validate user's vars before usinig in json
|
||||||
if [ "${JWT_ENABLED}" == "true" ]; then
|
if [ "${JWT_ENABLED}" == "true" ]; then
|
||||||
@ -82,7 +82,9 @@ else
|
|||||||
JWT_ENABLED="false"
|
JWT_ENABLED="false"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
JWT_SECRET=${JWT_SECRET:-secret}
|
[ -z $JWT_SECRET ] && JWT_MESSAGE="JWT is enabled by default. A random secret is generated automatically. Run the command 'docker exec $(cut -c9-20 < /proc/1/cpuset) sudo documentserver-jwt-status.sh' to get information about JWT."
|
||||||
|
|
||||||
|
JWT_SECRET=${JWT_SECRET:-$(pwgen -s 20)}
|
||||||
JWT_HEADER=${JWT_HEADER:-Authorization}
|
JWT_HEADER=${JWT_HEADER:-Authorization}
|
||||||
JWT_IN_BODY=${JWT_IN_BODY:-false}
|
JWT_IN_BODY=${JWT_IN_BODY:-false}
|
||||||
|
|
||||||
@ -639,5 +641,7 @@ if [ "${GENERATE_FONTS}" == "true" ]; then
|
|||||||
fi
|
fi
|
||||||
documentserver-static-gzip.sh ${ONLYOFFICE_DATA_CONTAINER}
|
documentserver-static-gzip.sh ${ONLYOFFICE_DATA_CONTAINER}
|
||||||
|
|
||||||
|
echo "${JWT_MESSAGE}"
|
||||||
|
|
||||||
tail -f /var/log/${COMPANY_NAME}/**/*.log &
|
tail -f /var/log/${COMPANY_NAME}/**/*.log &
|
||||||
wait $!
|
wait $!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user