Only use latest tag on main branch tags
This commit is contained in:
parent
9682ddd869
commit
a4bda63d95
1 changed files with 6 additions and 1 deletions
|
@ -11,7 +11,12 @@ stages:
|
|||
|
||||
variables:
|
||||
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
|
||||
IMAGE_LATEST: $CI_REGISTRY_IMAGE:latest
|
||||
IMAGE_LATEST: $CI_REGISTRY_IMAGE:develop
|
||||
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||
variables:
|
||||
IMAGE_LATEST: $CI_REGISTRY_IMAGE:latest
|
||||
|
||||
|
||||
.node:
|
||||
|
|
Reference in a new issue