summaryrefslogtreecommitdiffstats
path: root/build-gluster-org/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'build-gluster-org/scripts')
-rw-r--r--build-gluster-org/scripts/glusterd2-containers.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/build-gluster-org/scripts/glusterd2-containers.sh b/build-gluster-org/scripts/glusterd2-containers.sh
new file mode 100644
index 0000000..d5a8637
--- /dev/null
+++ b/build-gluster-org/scripts/glusterd2-containers.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+IMG_NAME="gluster/glusterd2-nightly"
+IMG_VERSION=$(date +%Y%m%d)
+
+cd extras/nightly-container
+./build.sh
+if [ "$PUSH_TO_HUB" = true ]; then
+ buildah push --authfile $AUTH_JSON "localhost/$IMG_NAME:$IMG_VERSION" "docker://docker.io/gluster/glusterd2-nightly:$IMG_VERSION"
+ buildah push --authfile $AUTH_JSON "localhost/$IMG_NAME:$IMG_VERSION" "docker://docker.io/gluster/glusterd2-nightly:latest"
+fi