container-pre-commit/.woodpecker.yaml

33 lines
866 B
YAML
Raw Normal View History

when:
path: "*Dockerfile*"
steps:
2023-09-21 17:08:31 +02:00
build-main:
when:
branch: main
2024-02-08 08:04:18 +01:00
image: woodpeckerci/plugin-docker-buildx:3.1.0@sha256:4327ebcb101d5f5a446cc2d83574dfdf54ac75ce4a47bcb254309a5c169830dd
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:
2023-09-22 14:55:28 +02:00
exclude: ["main"]
2024-02-08 08:04:18 +01:00
image: woodpeckerci/plugin-docker-buildx:3.1.0@sha256:4327ebcb101d5f5a446cc2d83574dfdf54ac75ce4a47bcb254309a5c169830dd
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}