From 8a36dea31ce140c38f616bf623a361af5a8cab77 Mon Sep 17 00:00:00 2001 From: Lucas Briese Date: Mon, 8 Nov 2021 18:19:51 +0100 Subject: [PATCH] fix docker hub hook --- test/testBuild.sh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/test/testBuild.sh b/test/testBuild.sh index 1e5b424..c257b50 100644 --- a/test/testBuild.sh +++ b/test/testBuild.sh @@ -2,6 +2,7 @@ readonly SUFFIX="$1" readonly BUILD_LGSM="$(grep -qF '--skip-lgsm' <<< "$@" && echo false || echo true)" +readonly repository="index.docker.io/jusito/docker-ttt" if [ "${DEBUGGING}" = "true" ]; then set -o xtrace @@ -16,15 +17,15 @@ set -o pipefail echo "[testBuild][INFO]build" if "$BUILD_LGSM"; then - docker rmi "jusito/docker-ttt:lgsm_debian${SUFFIX}" || true - docker build --no-cache -t "jusito/docker-ttt:lgsm_debian${SUFFIX}" "lgsm/" + docker rmi "$repository:lgsm_debian${SUFFIX}" || true + docker build --no-cache -t "$repository:lgsm_debian${SUFFIX}" "lgsm/" fi -docker rmi "jusito/docker-ttt:gmod_debian${SUFFIX}" || true -docker build --no-cache -t "jusito/docker-ttt:gmod_debian${SUFFIX}" "gmod/" +docker rmi "$repository:gmod_debian${SUFFIX}" || true +docker build --no-cache -t "$repository:gmod_debian${SUFFIX}" "gmod/" -docker rmi "jusito/docker-ttt:gmod_ttt_debian${SUFFIX}" || true -docker build --no-cache -t "jusito/docker-ttt:gmod_ttt_debian${SUFFIX}" "TTT/" +docker rmi "$repository:gmod_ttt_debian${SUFFIX}" || true +docker build --no-cache -t "$repository:gmod_ttt_debian${SUFFIX}" "TTT/" -docker rmi "jusito/docker-ttt:latest${SUFFIX}" || true -docker tag "jusito/docker-ttt:gmod_ttt_debian${SUFFIX}" "jusito/docker-ttt:latest${SUFFIX}" +docker rmi "$repository:latest${SUFFIX}" || true +docker tag "$repository:gmod_ttt_debian${SUFFIX}" "$repository:latest${SUFFIX}"