summaryrefslogtreecommitdiffstats
path: root/build-gluster-org/scripts/glusterd2-containers.sh
blob: e2c61cc67f34a6d900ca62aaad818a85f888d79c (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/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
buildah rmi --all