Files
barker/frank/deploy.sh
T

17 lines
405 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" || exit ; pwd -P )
cd "$parent_path" || exit
#./lint.sh
if [ 1 -eq "$#" ]
then
./version_bump.sh "$1"
fi
current_version=$(grep -m 1 '^version = ' pyproject.toml | sed -E 's/version = "([^"]+)"/\1/')
make build-production TAG="$current_version"
cd ansible || exit
# ansible-playbook --inventory=hosts frank.yml