Made the version bump more robust.

This commit is contained in:
2026-08-10 08:33:15 +00:00
parent 38a8656008
commit ebe5a6352e
2 changed files with 36 additions and 13 deletions

View File

@ -7,11 +7,10 @@ cd "$parent_path" || exit
if [ 1 -eq "$#" ]
then
# ./version_bump.sh "$1"
make build-production TAG="$1"
else
# ./version_bump.sh
make build-production
./version_bump.sh "$1"
fi
current_version=$(grep -m 1 '^version = ' barker/pyproject.toml | sed -E 's/version = "([^"]+)"/\1/')
make build-production TAG="$current_version"
cd "$parent_path/ansible" || exit
ansible-playbook --inventory=hosts playbook.yml