From ea41789ce8fd8647fc1d821118ff66838b622221 Mon Sep 17 00:00:00 2001 From: Isaac Parker Date: Thu, 2 Jul 2020 16:38:45 -0600 Subject: [PATCH] Parameterize Docker Hub location --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index e603def..095a922 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,7 +25,7 @@ before_install: - export GIT_SHA=$(git rev-parse --short $TRAVIS_BRANCH) script: - - echo "$DOCKER_PASSWORD" | docker login -u "${DOCKER_USERNAME}" --password-stdin && travis_wait 60 docker build --no-cache --pull -t dwelo2/rust-musl-crosscompiler:${TARGET_ARCH} --build-arg TARGET_ARCH=${TARGET_ARCH} . + - echo "$DOCKER_PASSWORD" | docker login -u "${DOCKER_USERNAME}" --password-stdin && travis_wait 60 docker build --no-cache --pull -t ${DOCKER_IMAGE_LOCATION:-dwelo2}/rust-musl-crosscompiler:${TARGET_ARCH} --build-arg TARGET_ARCH=${TARGET_ARCH} . after_success: - - if [ "$TRAVIS_BRANCH" == "master" ]; then docker push dwelo2/rust-musl-crosscompiler:${TARGET_ARCH}; fi + - if [ "$TRAVIS_BRANCH" == "master" ]; then docker push ${DOCKER_IMAGE_LOCATION:-dwelo2}/rust-musl-crosscompiler:${TARGET_ARCH}; fi