2021-01-05 07:32:52 +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
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd docker/app || exit
|
|
|
|
docker build --tag luthor:latest .
|
2021-01-26 04:10:17 +00:00
|
|
|
cd "$parent_path/docker" || exit
|
2021-01-05 07:32:52 +00:00
|
|
|
docker save luthor:latest | bzip2 | pv | ssh tanshu@knox.tanshu.com 'bunzip2 | sudo docker load'
|
|
|
|
ansible-playbook playbook.yml
|