From a1436951dea4229c9a7580d6a0618e1d5df15858 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Tue, 3 Oct 2017 10:44:54 +0200 Subject: [PATCH] fixed docker image push --- hooks/build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hooks/build b/hooks/build index df9de7a..ecfd89c 100755 --- a/hooks/build +++ b/hooks/build @@ -22,7 +22,9 @@ for DOCKER_IMAGE in ${DOCKER_IMAGES}; do docker push ${DOCKER_REGISTRY}/${GITHUB_USERNAME}/${DOCKER_REPOSITORY}:${DOCKER_IMAGE} - docker push ${DOCKER_REGISTRY}/${GITHUB_USERNAME}/${DOCKER_REPOSITORY}:${DOCKER_IMAGE}-${ZAMMAD_VERSION} + if [ "${ZAMMAD_VERSION}" != "latest" ]; then + docker push ${DOCKER_REGISTRY}/${GITHUB_USERNAME}/${DOCKER_REPOSITORY}:${DOCKER_IMAGE}-${ZAMMAD_VERSION} + fi else echo "Build Zammad Docker image ${DOCKER_IMAGE} for DockerHubs ${DOCKER_REPO}:${DOCKER_IMAGE} repo"