summaryrefslogtreecommitdiffstats
path: root/build-gluster-org/scripts/glusterd2-containers.sh
blob: d5a86370ff99df09d35b42f3e142e069228f2d38 (plain)
1
2
3
4
5
6
7
8
9
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