Tag images differently for branches
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Henrik HerHde Huettemann 2023-09-21 17:08:31 +02:00
parent de2d02498c
commit d49638bef1
Signed by: HueHe
GPG key ID: 9F7BD10E0A8A111E

View file

@ -1,5 +1,7 @@
steps: steps:
build: build-main:
when:
branch: main
image: woodpeckerci/plugin-docker-buildx image: woodpeckerci/plugin-docker-buildx
pull: true pull: true
settings: settings:
@ -8,5 +10,20 @@ steps:
username: WoodpeckerCI username: WoodpeckerCI
password: password:
from_secret: gitea_token from_secret: gitea_token
repo: ${CI_FORGE_URL}/${CI_REPO,,} repo: git.verdigado.com/${CI_REPO,,}
tag: "latest" tag: "latest"
build-branch:
when:
branch:
exclude: [ "main" ]
image: woodpeckerci/plugin-docker-buildx
pull: true
settings:
platforms: linux/amd64
registry: ${CI_FORGE_URL}
username: WoodpeckerCI
password:
from_secret: gitea_token
repo: git.verdigado.com/${CI_REPO,,}
tag: ${CI_COMMIT_BRANCH}