rename stable container tags to latest

This commit is contained in:
Shelikhoo 2024-03-27 13:47:16 +00:00
parent d40995035f
commit 18f3ac734c
No known key found for this signature in database
GPG key ID: 4C9764E9FE80A3DC

View file

@ -296,7 +296,7 @@ build-container:
name: gcr.io/kaniko-project/executor:debug name: gcr.io/kaniko-project/executor:debug
entrypoint: [""] entrypoint: [""]
script: script:
- if [ $CI_COMMIT_REF_NAME == "main" ]; then export TAG='latest'; fi - if [ $CI_COMMIT_REF_NAME == "main" ]; then export TAG='nightly'; fi
- >- - >-
/kaniko/executor /kaniko/executor
--context "${CI_PROJECT_DIR}" --context "${CI_PROJECT_DIR}"
@ -317,7 +317,7 @@ merge-manifests:
name: mplatform/manifest-tool:alpine name: mplatform/manifest-tool:alpine
entrypoint: [""] entrypoint: [""]
script: script:
- if [ $CI_COMMIT_REF_NAME == "main" ]; then export TAG='latest'; fi - if [ $CI_COMMIT_REF_NAME == "main" ]; then export TAG='nightly'; fi
- >- - >-
manifest-tool manifest-tool
--username="${CI_REGISTRY_USER}" --username="${CI_REGISTRY_USER}"
@ -342,7 +342,7 @@ tag-container-release:
allow_failure: false allow_failure: false
variables: variables:
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
RELEASE_TAG: $CI_REGISTRY_IMAGE:stable RELEASE_TAG: $CI_REGISTRY_IMAGE:latest
script: script:
- echo "Tagging docker image with stable tag" - echo "Tagging docker image with stable tag"
- echo -n "$CI_JOB_TOKEN" | podman login -u gitlab-ci-token --password-stdin $CI_REGISTRY - echo -n "$CI_JOB_TOKEN" | podman login -u gitlab-ci-token --password-stdin $CI_REGISTRY