container-pre-commit/.woodpecker.yaml

30 lines
696 B
YAML
Raw Normal View History

steps:
2023-09-21 17:08:31 +02:00
build-main:
when:
branch: main
2023-09-22 14:23:53 +02:00
image: woodpeckerci/plugin-docker-buildx:v2.1.0
pull: true
settings:
platforms: linux/amd64
registry: ${CI_FORGE_URL}
username: WoodpeckerCI
password:
from_secret: gitea_token
2023-09-21 17:08:31 +02:00
repo: git.verdigado.com/${CI_REPO,,}
tag: "latest"
2023-09-21 17:08:31 +02:00
build-branch:
when:
branch:
exclude: [ "main" ]
2023-09-22 14:23:53 +02:00
image: woodpeckerci/plugin-docker-buildx:v2.1.0
2023-09-21 17:08:31 +02:00
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}