container-pre-commit/.woodpecker.yaml
Henrik Hüttemann d49638bef1
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Tag images differently for branches
2023-09-21 17:08:31 +02:00

29 lines
682 B
YAML

steps:
build-main:
when:
branch: 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: "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}