2021-01-25 07:44:17 +00:00
|
|
|
#!/usr/bin/env bash
|
2021-09-16 06:51:42 +00:00
|
|
|
set -e
|
|
|
|
|
2021-01-25 07:44:17 +00:00
|
|
|
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
|
2021-09-10 07:56:16 +00:00
|
|
|
./version_bump.sh
|
2021-01-25 07:44:17 +00:00
|
|
|
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'
|
2021-09-06 15:06:36 +00:00
|
|
|
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
|