From fe89651c432e840d453390a2fd25d0f318ba61c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9=20=D0=A1=D0=B0?= =?UTF-8?q?=D1=84=D1=80=D0=BE=D0=BD=D0=BE=D0=B2?= Date: Tue, 20 Feb 2024 07:29:36 +0300 Subject: [PATCH] Update entrypoint.sh --- entrypoint.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 9713106..a9f3371 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -28,10 +28,10 @@ test -z "${CI_REGISTRY_PASSWORD}" && should_die "CI_REGISTRY_PASSWORD is missing test -z "${CI_PROJECT_PATH}" && should_die "CI_PROJECT_PATH is missing" test -z "${CI_COMMIT_SHA}" && should_die "CI_COMMIT_SHA is missing" -if test -z "${CI_APPLICATION_TAG}" && test -z "${REGISTRY_TAG_OLD}";then +if test -z "${CI_APPLICATION_TAG}" && test -z "${REGISTRY_TAG_OLD}"; then should_die "Neither CI_APPLICATION_TAG nor REGISTRY_TAG_OLD was set!" fi -if test -n "${CI_APPLICATION_TAG}" && test -n "${REGISTRY_TAG_OLD}";then +if test -n "${CI_APPLICATION_TAG}" && test -n "${REGISTRY_TAG_OLD}"; then should_die "Both CI_APPLICATION_TAG and REGISTRY_TAG_OLD were set!" fi @@ -40,7 +40,10 @@ test -n "${SHOULD_DIE}" && die "Wrong config!" ########################################################################################################################## # DEBUG -test -z "${RETAG_DEBUG}" || set -x +if test -n "${RETAG_DEBUG}"; then + env | sort -u + set -x +fi # TEST if test -z "${CI_COMMIT_TAG}" && test -z "${REGISTRY_TAG_OLD}"; then -- GitLab