From 8c5818acf03c0116ee0c7180f1ff5e94927aa27a Mon Sep 17 00:00:00 2001 From: Amelia Yukii Date: Thu, 1 Feb 2024 15:45:42 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6c156329c..5c15e86d3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -58,6 +58,9 @@ getImageTag: - tags buildDocker: stage: deploy + needs: + - job: getImageTag + artifacts: true parallel: matrix: - ARCH: amd64 @@ -72,7 +75,7 @@ buildDocker: /kaniko/executor --context "${CI_PROJECT_DIR}" --dockerfile "${CI_PROJECT_DIR}/Dockerfile" - --destination "${CI_REGISTRY_IMAGE}:${ARCH}" + --destination "${CI_REGISTRY_IMAGE}:${REGISTRY_PUSH_TAG}-${ARCH}" only: - stable - develop @@ -97,9 +100,9 @@ mergeManifests: push from-args --platforms linux/amd64,linux/arm64 --tags ${REGISTRY_PUSH_VERSION} - --template ${CI_REGISTRY_IMAGE}:ARCH + --template ${CI_REGISTRY_IMAGE}:${REGISTRY_PUSH_TAG}-ARCH --target ${CI_REGISTRY_IMAGE}:${REGISTRY_PUSH_TAG} only: - stable - develop - - tags \ No newline at end of file + - tags