Replace build-and-tag.sh with uniform build script; set version.txt to v8

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016CfGMAJK5sD43otMxjBYEy
This commit is contained in:
ericandClaude Sonnet 5.5 committed 2026-10-25 15:42:24 -04:00
1 parent 2cbb4a4d1f
commit e17d57e88e
3 files changed
+17 -29

No files matched your search

Executable
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
# Build the next versioned image, push it (+ :latest) to the registry, and
# record the new version in version.txt. Usage: ./build
set -euo pipefail
cd "$(dirname "$(realpath "${BASH_SOURCE[0]}")")"
IMAGE=registry.digitalsorcery.net/hardings-service
NEXT="v$(($(tr -d 'v[:space:]' < version.txt) + 1))"
podman build --pull=always -t "$IMAGE:$NEXT" -t "$IMAGE:latest" .
podman push "$IMAGE:$NEXT"
podman push "$IMAGE:latest"
echo "$NEXT" > version.txt
echo "Pushed $IMAGE:$NEXT"