brewman/deploy.sh
tanshu 350edf7126 Removed timezone information from columns. Time will be stored in UTC coordinates.
Moved to Sqlalchemy 1.4 model and SessionFuture.

Upgraded to Angular 12

Upgraded the python dependencies
2021-09-07 12:59:18 +05:30

27 lines
707 B
Bash
Executable File

#!/usr/bin/env bash
parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" || exit ; pwd -P )
cd "$parent_path" || exit
./lint.sh
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
fi
cd "$parent_path/docker/app" || exit
docker build --tag brewman:latest .
cd "$parent_path/docker" || exit
docker save brewman:latest | bzip2 | pv | ssh tanshu@knox.tanshu.com 'bunzip2 | sudo docker load'
ansible-playbook --limit knox playbook-exp.yml
ansible-playbook --limit knox playbook-hops.yml
ansible-playbook --limit knox playbook-acc.yml
ansible-playbook --limit knox playbook-mhl.yml