22 lines
555 B
Bash
Executable File
22 lines
555 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
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
|
|
./version_bump.sh
|
|
fi
|
|
|
|
cd "$parent_path/docker/app" || exit
|
|
docker build --tag barker:latest .
|
|
cd "$parent_path/docker" || exit
|
|
docker save barker:latest | bzip2 | pv | ssh tanshu@knox.tanshu.com 'bunzip2 | sudo docker load'
|
|
ansible-playbook --limit=knox playbook-mhl.yml
|
|
ansible-playbook --limit=knox playbook-chd.yml
|
|
ansible-playbook --limit=knox playbook-pkl.yml
|