From 91d1c29df9e6a066146822669a4cf57ec80cfa04 Mon Sep 17 00:00:00 2001 From: Radu Carpa Date: Fri, 22 Dec 2023 13:05:54 +0100 Subject: [PATCH] Only push alma9-latest tag if latest tag is also set Otherwise, it will not generate correctly the -alma9 tag. --- .github/workflows/docker-auto-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-auto-build.yml b/.github/workflows/docker-auto-build.yml index 369f105..79c763e 100644 --- a/.github/workflows/docker-auto-build.yml +++ b/.github/workflows/docker-auto-build.yml @@ -209,7 +209,7 @@ jobs: fi # TODO: remove this hack hack once rucio tests are updated to use the default image. - if [[ "${CONTEXT}" =~ .*"push-alma9-latest".* ]]; then + if [[ "${CONTEXT}" =~ .*"push-alma9-latest".* && -n "$LATEST_TAG" ]]; then TAGS_TO_PUSH="${LATEST_TAG}-alma9,${TAGS_TO_PUSH}" fi