Add build.sh wrapper that bumps the explicit dev/test build segment (scripts/bump-dev-build.py) for test builds and validates release version state (scripts/check-release-version.py) for releases. Update build-and-push.sh accordingly. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
29 lines
614 B
Bash
Executable File
29 lines
614 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# Novela build wrapper. Keeps project-specific version handling out of the
|
|
# shared build-and-push.sh script.
|
|
#
|
|
# Usage:
|
|
# ./build.sh t # increment explicit dev/test build segment, then push :dev
|
|
# ./build.sh r # validate release version state, then run release build
|
|
|
|
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
cd "$repo_root"
|
|
|
|
mode="${1:-}"
|
|
case "$mode" in
|
|
t)
|
|
./scripts/bump-dev-build.py
|
|
;;
|
|
r)
|
|
./scripts/check-release-version.py
|
|
;;
|
|
*)
|
|
echo "usage: ./build.sh {t|r}" >&2
|
|
exit 2
|
|
;;
|
|
esac
|
|
|
|
exec ./build-and-push.sh "$@"
|