Updated the deploy and version_bump scripts
This commit is contained in:
parent
2820813cb6
commit
dbf0ecf0d8
@ -8,12 +8,7 @@ if [ 1 -eq "$#" ]
|
||||
then
|
||||
./version_bump.sh "$1"
|
||||
else
|
||||
echo "No version bump"
|
||||
git push
|
||||
git tag --delete latest
|
||||
git tag latest
|
||||
git push --delete origin latest
|
||||
git push --tags
|
||||
./version_bump.sh
|
||||
fi
|
||||
|
||||
cd "$parent_path/docker/app" || exit
|
||||
|
@ -4,23 +4,24 @@ cd "$parent_path" || exit
|
||||
|
||||
if [ 1 -ne "$#" ]
|
||||
then
|
||||
echo "Usage: `basename $0` Version: eg. 9.0.0"
|
||||
exit 0
|
||||
echo "Version bump to $1"
|
||||
sed --in-place --regexp-extended 's/"([0-9].[0-9].[0-9])"/"'"$1"'"/g' brewman/brewman/__version__.py
|
||||
git add brewman/brewman/__version__.py
|
||||
sed --in-place --regexp-extended 's/version = "([0-9].[0-9].[0-9])"/version = "'"$1"'"/g' brewman/pyproject.toml
|
||||
git add brewman/pyproject.toml
|
||||
sed --in-place --regexp-extended 's/version: '\''([0-9].[0-9].[0-9])'\''/version: '\'"$1"\''/g' overlord/src/environments/environment.prod.ts
|
||||
git add overlord/src/environments/environment.prod.ts
|
||||
sed --in-place --regexp-extended 's/version: '\''([0-9].[0-9].[0-9])'\''/version: '\'"$1"\''/g' overlord/src/environments/environment.ts
|
||||
git add overlord/src/environments/environment.ts
|
||||
sed --in-place --regexp-extended 's/"version": "([0-9].[0-9].[0-9])"/"version": "'"$1"'"/g' overlord/package.json
|
||||
git add overlord/package.json
|
||||
git commit -m "Version Bump v$1"
|
||||
git tag "v$1"
|
||||
else
|
||||
echo "No version bump"
|
||||
fi
|
||||
sed --in-place --regexp-extended 's/"([0-9].[0-9].[0-9])"/"'"$1"'"/g' brewman/brewman/__version__.py
|
||||
git add brewman/brewman/__version__.py
|
||||
sed --in-place --regexp-extended 's/version = "([0-9].[0-9].[0-9])"/version = "'"$1"'"/g' brewman/pyproject.toml
|
||||
git add brewman/pyproject.toml
|
||||
sed --in-place --regexp-extended 's/version: '\''([0-9].[0-9].[0-9])'\''/version: '\'"$1"\''/g' overlord/src/environments/environment.prod.ts
|
||||
git add overlord/src/environments/environment.prod.ts
|
||||
sed --in-place --regexp-extended 's/version: '\''([0-9].[0-9].[0-9])'\''/version: '\'"$1"\''/g' overlord/src/environments/environment.ts
|
||||
git add overlord/src/environments/environment.ts
|
||||
sed --in-place --regexp-extended 's/"version": "([0-9].[0-9].[0-9])"/"version": "'"$1"'"/g' overlord/package.json
|
||||
git add overlord/package.json
|
||||
git commit -m "Version Bump v$1"
|
||||
git push
|
||||
git tag --delete latest
|
||||
git tag latest
|
||||
git tag "v$1"
|
||||
git push --delete origin latest
|
||||
git push --tags
|
||||
|
Loading…
Reference in New Issue
Block a user