CI: Add "--build-arg GODEBUG" to build scripts

This commit is contained in:
Michael Mayer 2021-12-10 09:09:21 +01:00
parent e2e5fd11d4
commit f8dfedb1bf
3 changed files with 6 additions and 0 deletions

View File

@ -7,6 +7,8 @@ scripts/test.sh
# Build images
make docker-preview
sleep 2
docker pull photoprism/photoprism:preview
make docker-demo

View File

@ -17,6 +17,7 @@ elif [[ $1 ]] && [[ -z $2 ]]; then
--no-cache \
--build-arg BUILD_TAG="${DOCKER_TAG}" \
--build-arg GOPROXY \
--build-arg GODEBUG \
-t photoprism/$1:preview \
-f docker/${1/-//}/Dockerfile .
echo "Done"
@ -26,6 +27,7 @@ else
--no-cache \
--build-arg BUILD_TAG=$2 \
--build-arg GOPROXY \
--build-arg GODEBUG \
-t photoprism/$1:latest \
-t photoprism/$1:$2 \
-f docker/${1/-//}/Dockerfile .

View File

@ -26,6 +26,7 @@ if [[ $1 ]] && [[ $2 ]] && [[ -z $3 ]]; then
--no-cache \
--build-arg BUILD_TAG=$DOCKER_TAG \
--build-arg GOPROXY \
--build-arg GODEBUG \
-f docker/$1/Dockerfile \
-t photoprism/$1:preview \
--push .
@ -37,6 +38,7 @@ else
--no-cache \
--build-arg BUILD_TAG=$3 \
--build-arg GOPROXY \
--build-arg GODEBUG \
-f docker/$1/Dockerfile \
-t photoprism/$1:latest \
-t photoprism/$1:$3 \