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}"