From eb65555fe7bea8ba82cd39c8f7d32cdf0e43afc0 Mon Sep 17 00:00:00 2001 From: Bobby Rullo Date: Wed, 26 Aug 2015 14:23:49 -0700 Subject: [PATCH] build-docker-push: allow override of quay repo --- build-docker-push | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build-docker-push b/build-docker-push index aa97a9ea..b90020aa 100755 --- a/build-docker-push +++ b/build-docker-push @@ -1,13 +1,15 @@ #!/bin/bash -e -registry=quay.io -repo=$registry/coreos/dex + +DOCKER_REGISTRY=${DOCKER_REGISTRY:=quay.io} +DOCKER_REPO=${DOCKER_REPO:=coreos/dex} +repo=$DOCKER_REGISTRY/$DOCKER_REPO if [ -v $DOCKER_USER ] || [ -v $DOCKER_PASSWORD ]; then echo "env variables not set: DOCKER_USER, DOCKER_PASSWORD. skipping login, assuming creds in .dockercfg" else echo logging in as $DOCKER_USER - docker login --username="$DOCKER_USER" --password="$DOCKER_PASSWORD" --email="docker.login@coreos.com" $registry + docker login --username="$DOCKER_USER" --password="$DOCKER_PASSWORD" --email="docker.login@coreos.com" $DOCKER_REGISTRY fi git_sha=$(git rev-parse HEAD)