Made the version bump more robust.
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user