aboutsummaryrefslogtreecommitdiff
path: root/scripts/deploy.sh
diff options
context:
space:
mode:
authorAnders Betts <anders.betts@gmail.com>2026-09-18 09:56:10 +0200
committerAnders Betts <anders.betts@gmail.com>2026-09-18 09:56:10 +0200
commit041b2dd29d30a8ecadca22ef25282cbad672d94e (patch)
tree303cee3bb41813764b131c0a0f4430d4dbca105d /scripts/deploy.sh
parent6de6ffa3e52a2bec519c2a052d0f26d01e38f167 (diff)
downloadbokf-041b2dd29d30a8ecadca22ef25282cbad672d94e.tar.gz
bokf-041b2dd29d30a8ecadca22ef25282cbad672d94e.zip
Show tui and server versions in the status line; derive version from gitv0.1.12
- build: VERSION defaults to git describe, deploy passes the tag via --build-arg - bokftui: srv version from meta, right-aligned next to the status line
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'"