2020-12-19 05:12:20 +00:00
|
|
|
#!/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
|
|
|
|
|
2021-04-27 01:52:04 +00:00
|
|
|
cd "$parent_path/docker/app" || exit
|
2020-12-19 05:12:20 +00:00
|
|
|
docker build --tag barker:latest .
|
2021-03-17 04:09:56 +00:00
|
|
|
cd "$parent_path/docker" || exit
|
2020-12-19 05:12:20 +00:00
|
|
|
docker save barker:latest | bzip2 | pv | ssh tanshu@knox.tanshu.com 'bunzip2 | sudo docker load'
|
2021-04-24 03:39:57 +00:00
|
|
|
ansible-playbook --limit=knox playbook-mhl.yml
|
|
|
|
ansible-playbook --limit=knox playbook-chd.yml
|
|
|
|
ansible-playbook --limit=knox playbook-pkl.yml
|