Only use latest tag on main branch tags

This commit is contained in:
Neshura 2022-12-03 22:56:13 +01:00
parent 9682ddd869
commit a4bda63d95
No known key found for this signature in database
GPG key ID: ACDF5B6EBECF6B0A

View file

@ -11,6 +11,11 @@ stages:
variables:
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
IMAGE_LATEST: $CI_REGISTRY_IMAGE:develop
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
variables:
IMAGE_LATEST: $CI_REGISTRY_IMAGE:latest