2020-12-19 05:12:20 +00:00
|
|
|
#!/usr/bin/env bash
|
2022-04-03 01:57:12 +00:00
|
|
|
set -euo pipefail
|
2020-12-19 05:12:20 +00:00
|
|
|
parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" || exit ; pwd -P )
|
|
|
|
cd "$parent_path" || exit
|
|
|
|
|
|
|
|
./lint.sh
|
|
|
|
|
2021-06-22 00:04:11 +00:00
|
|
|
if [ 1 -eq "$#" ]
|
|
|
|
then
|
|
|
|
./version_bump.sh "$1"
|
|
|
|
else
|
|
|
|
./version_bump.sh
|
|
|
|
fi
|
2020-12-19 05:12:20 +00:00
|
|
|
|
2024-12-16 12:23:21 +00:00
|
|
|
make build-production
|
2022-04-26 03:33:10 +00:00
|
|
|
if [ 1 -eq "$#" ]
|
|
|
|
then
|
|
|
|
docker tag barker:latest "$1"
|
|
|
|
else
|
|
|
|
echo "No version bump"
|
|
|
|
fi
|
2024-12-16 12:23:21 +00:00
|
|
|
docker tag barker:latest registry.tanshu.com/barker:latest
|
|
|
|
docker push registry.tanshu.com/barker:latest
|
|
|
|
cd "$parent_path/ansible" || exit
|
2023-07-23 03:16:07 +00:00
|
|
|
ansible-playbook --inventory hosts playbook.yml
|