fix docker hub hook
This commit is contained in:
parent
53276e94fd
commit
8a36dea31c
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user