summaryrefslogtreecommitdiffstats
path: root/ansible_collections/sensu/sensu_go/docker/build.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 16:03:42 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 16:03:42 +0000
commit66cec45960ce1d9c794e9399de15c138acb18aed (patch)
tree59cd19d69e9d56b7989b080da7c20ef1a3fe2a5a /ansible_collections/sensu/sensu_go/docker/build.sh
parentInitial commit. (diff)
downloadansible-upstream.tar.xz
ansible-upstream.zip
Adding upstream version 7.3.0+dfsg.upstream/7.3.0+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/sensu/sensu_go/docker/build.sh')
-rwxr-xr-xansible_collections/sensu/sensu_go/docker/build.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/ansible_collections/sensu/sensu_go/docker/build.sh b/ansible_collections/sensu/sensu_go/docker/build.sh
new file mode 100755
index 00000000..a6c56fcb
--- /dev/null
+++ b/ansible_collections/sensu/sensu_go/docker/build.sh
@@ -0,0 +1,13 @@
+#!/bin/bash -eu
+
+set -o pipefail
+
+readonly filename="$1"; shift
+
+readonly base=${filename%.docker}
+readonly name=${base%-*}
+readonly version=${base##*-}
+readonly tag="quay.io/xlab-steampunk/sensu-go-tests-$name:$version"
+
+docker build --pull -f "$filename" -t "$tag" .
+docker push "$tag"