docker-phpbb/.woodpecker/docker.yaml
Vladimir Hodakov 04af9fc0dd
All checks were successful
ci/woodpecker/pr/docker/2 Pipeline was successful
ci/woodpecker/pr/docker/1 Pipeline was successful
Get use of label
2025-01-13 17:29:07 +04:00

43 lines
819 B
YAML

matrix:
platform:
- linux/amd64
- linux/arm64
labels:
platform: ${platform}
when:
branch: main
event: [push, pull_request, tag]
variables:
- &repo source.hodakov.me/${CI_REPO_OWNER}/phpbb
steps:
test-build:
image: woodpeckerci/plugin-docker-buildx:5.1.0
privileged: true
settings:
dockerfile: Dockerfile
platforms: ${platform}
dry_run: true
repo: *repo
auto_tag: true
when:
event: pull_request
publish:
image: woodpeckerci/plugin-docker-buildx:5.1.0
privileged: true
settings:
dockerfile: Dockerfile
platforms: ${platform}
repo: *repo
registry: source.hodakov.me
auto_tag: true
username: ${CI_REPO_OWNER}
password:
from_secret: registry_token
when:
event: [push, tag]