fix docker hub hook

This commit is contained in:
Lucas Briese 2021-11-08 18:19:51 +01:00
parent 53276e94fd
commit 8a36dea31c

View File

@ -2,6 +2,7 @@
readonly SUFFIX="$1" readonly SUFFIX="$1"
readonly BUILD_LGSM="$(grep -qF '--skip-lgsm' <<< "$@" && echo false || echo true)" readonly BUILD_LGSM="$(grep -qF '--skip-lgsm' <<< "$@" && echo false || echo true)"
readonly repository="index.docker.io/jusito/docker-ttt"
if [ "${DEBUGGING}" = "true" ]; then if [ "${DEBUGGING}" = "true" ]; then
set -o xtrace set -o xtrace
@ -16,15 +17,15 @@ set -o pipefail
echo "[testBuild][INFO]build" echo "[testBuild][INFO]build"
if "$BUILD_LGSM"; then if "$BUILD_LGSM"; then
docker rmi "jusito/docker-ttt:lgsm_debian${SUFFIX}" || true docker rmi "$repository:lgsm_debian${SUFFIX}" || true
docker build --no-cache -t "jusito/docker-ttt:lgsm_debian${SUFFIX}" "lgsm/" docker build --no-cache -t "$repository:lgsm_debian${SUFFIX}" "lgsm/"
fi fi
docker rmi "jusito/docker-ttt:gmod_debian${SUFFIX}" || true docker rmi "$repository:gmod_debian${SUFFIX}" || true
docker build --no-cache -t "jusito/docker-ttt:gmod_debian${SUFFIX}" "gmod/" docker build --no-cache -t "$repository:gmod_debian${SUFFIX}" "gmod/"
docker rmi "jusito/docker-ttt:gmod_ttt_debian${SUFFIX}" || true docker rmi "$repository:gmod_ttt_debian${SUFFIX}" || true
docker build --no-cache -t "jusito/docker-ttt:gmod_ttt_debian${SUFFIX}" "TTT/" docker build --no-cache -t "$repository:gmod_ttt_debian${SUFFIX}" "TTT/"
docker rmi "jusito/docker-ttt:latest${SUFFIX}" || true docker rmi "$repository:latest${SUFFIX}" || true
docker tag "jusito/docker-ttt:gmod_ttt_debian${SUFFIX}" "jusito/docker-ttt:latest${SUFFIX}" docker tag "$repository:gmod_ttt_debian${SUFFIX}" "$repository:latest${SUFFIX}"