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:
|
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}
|
||||||
|
|
Loading…
Reference in a new issue