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
|
@ -42,8 +42,8 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- apk -u add crane
|
- apk -u add crane
|
||||||
- crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN
|
- crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN
|
||||||
- crane push /woodpecker/images/keycloak.tar $IMAGE_NAME:$KEYCLOAK_VERSION
|
- crane push /woodpecker/images/keycloak.tar $IMAGE_NAME:$CI_COMMIT_BRANCH
|
||||||
- name: tag-main-and-latest
|
- name: tag-version-and-latest
|
||||||
image: alpine
|
image: alpine
|
||||||
when:
|
when:
|
||||||
- branch: main
|
- branch: main
|
||||||
|
@ -52,5 +52,5 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- apk -u add crane
|
- apk -u add crane
|
||||||
- crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN
|
- crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN
|
||||||
- crane tag $IMAGE_NAME:$KEYCLOAK_VERSION main
|
- crane tag $IMAGE_NAME:$CI_COMMIT_BRANCH $KEYCLOAK_VERSION
|
||||||
- crane tag $IMAGE_NAME:$KEYCLOAK_VERSION latest
|
- crane tag $IMAGE_NAME:$CI_COMMIT_BRANCH latest
|
||||||
|
|
Loading…
Reference in a new issue