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

This way the version tag is stable aka only points to builds from main.
This commit is contained in:
June 2024-07-27 01:33:46 +02:00
parent 5e8b72337b
commit bc8cd3dec6
Signed by: june
SSH key fingerprint: SHA256:o9EAq4Y9N9K0pBQeBTqhSDrND5E7oB+60ZNx0U1yPe0

View file

@ -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