Tag images differently for branches
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
de2d02498c
commit
d49638bef1
1 changed files with 19 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
|||
steps:
|
||||
build:
|
||||
build-main:
|
||||
when:
|
||||
branch: main
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
pull: true
|
||||
settings:
|
||||
|
@ -8,5 +10,20 @@ steps:
|
|||
username: WoodpeckerCI
|
||||
password:
|
||||
from_secret: gitea_token
|
||||
repo: ${CI_FORGE_URL}/${CI_REPO,,}
|
||||
repo: git.verdigado.com/${CI_REPO,,}
|
||||
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}
|
||||
|
|
Loading…
Reference in a new issue