diff options
| author | Anders Betts <anders.betts@gmail.com> | 2026-09-18 09:56:10 +0200 |
|---|---|---|
| committer | Anders Betts <anders.betts@gmail.com> | 2026-09-18 09:56:10 +0200 |
| commit | 041b2dd29d30a8ecadca22ef25282cbad672d94e (patch) | |
| tree | 303cee3bb41813764b131c0a0f4430d4dbca105d /scripts | |
| parent | 6de6ffa3e52a2bec519c2a052d0f26d01e38f167 (diff) | |
| download | bokf-9a670f122a6f41631e8bbb3f4c8ea05f1786cbd8.tar.gz bokf-9a670f122a6f41631e8bbb3f4c8ea05f1786cbd8.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')
| -rwxr-xr-x | scripts/deploy.sh | 4 |
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'" |
