summaryrefslogtreecommitdiffstats
path: root/build-gluster-org/scripts/glusterd2-containers.sh
diff options
context:
space:
mode:
authorNigel Babu <nigelb@redhat.com>2018-08-17 07:29:46 +0530
committerNigel Babu <nigelb@redhat.com>2018-08-30 06:09:40 +0000
commit03614883897903152688f9f6ea4deb129c8fcc6c (patch)
treeb5dea94333024cae1b00660b91c697f7157a843a /build-gluster-org/scripts/glusterd2-containers.sh
parent16ba5cbddcb7e06502e1d6f12a6295b353bd6ee0 (diff)
Add a job for gd2 containers
Change-Id: I42ebd35471af8e0b7b36d1039be48a28912f409f
Diffstat (limited to 'build-gluster-org/scripts/glusterd2-containers.sh')
-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