summaryrefslogtreecommitdiff
path: root/scripts/deploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/deploy.sh')
-rwxr-xr-xscripts/deploy.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/deploy.sh b/scripts/deploy.sh
index 2abd1e1..25c86dc 100755
--- a/scripts/deploy.sh
+++ b/scripts/deploy.sh
@@ -60,7 +60,7 @@ esac
if [ "$BOKF_BUILD" = local ]; then
echo "deploy: building image bokf:$TAG locally"
- docker build -t "bokf:$TAG" .
+ docker build --build-arg "VERSION=$TAG" -t "bokf:$TAG" .
echo "deploy: shipping image to $BOKF_HOST"
docker save "bokf:$TAG" | gzip | "${SSH[@]}" 'gunzip | docker load'
else
@@ -69,7 +69,7 @@ else
--exclude=./.git --exclude=./build --exclude=./var --exclude=./.env \
--exclude='./*.se' --exclude='./*.db' --exclude='./*.db-wal' \
--exclude='./*.db-shm' --exclude=./docs . |
- "${SSH[@]}" "docker build -t 'bokf:$TAG' -"
+ "${SSH[@]}" "docker build --build-arg 'VERSION=$TAG' -t 'bokf:$TAG' -"
fi
remote "mkdir -p '$BOKF_REMOTE_DIR'"