diff --git a/build_and_tag.sh b/build_and_tag.sh new file mode 100755 index 0000000..f97b53c --- /dev/null +++ b/build_and_tag.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +export COMMIT_DATE=$(date -u -Idate -d @$(git show -s --format=%ct)) +export TAG=${COMMIT_DATE}.$(git rev-parse HEAD) +podman image build . -t gitea.treehouse.systems/treehouse/barman:${TAG} +podman tag gitea.treehouse.systems/treehouse/barman:${TAG} gitea.treehouse.systems/treehouse/barman:latest