Only tag with branch name everytime and tag with ver. and latest on main
All checks were successful
ci/woodpecker/push/keycloak Pipeline was successful
All checks were successful
ci/woodpecker/push/keycloak Pipeline was successful
This way the version tag is stable aka only points to builds from main.
This commit is contained in:
parent
5e8b72337b
commit
bc8cd3dec6
1 changed files with 4 additions and 4 deletions
|
@ -42,8 +42,8 @@ steps:
|
|||
commands:
|
||||
- apk -u add crane
|
||||
- crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN
|
||||
- crane push /woodpecker/images/keycloak.tar $IMAGE_NAME:$KEYCLOAK_VERSION
|
||||
- name: tag-main-and-latest
|
||||
- crane push /woodpecker/images/keycloak.tar $IMAGE_NAME:$CI_COMMIT_BRANCH
|
||||
- name: tag-version-and-latest
|
||||
image: alpine
|
||||
when:
|
||||
- branch: main
|
||||
|
@ -52,5 +52,5 @@ steps:
|
|||
commands:
|
||||
- apk -u add crane
|
||||
- crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN
|
||||
- crane tag $IMAGE_NAME:$KEYCLOAK_VERSION main
|
||||
- crane tag $IMAGE_NAME:$KEYCLOAK_VERSION latest
|
||||
- crane tag $IMAGE_NAME:$CI_COMMIT_BRANCH $KEYCLOAK_VERSION
|
||||
- crane tag $IMAGE_NAME:$CI_COMMIT_BRANCH latest
|
||||
|
|
Loading…
Reference in a new issue