Script to build and tag a Docker image
parent
04ff977245
commit
98d2fc700e
|
@ -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:2024-12-09.4a81e73192649d7ad5cdfbdfec94f59e4e145a5b gitea.treehouse.systems/treehouse/barman:latest
|
Loading…
Reference in New Issue