docker-phpbb/.woodpecker/docker.yaml
Vladimir Hodakov 75c7537405
Some checks are pending
ci/woodpecker/pr/docker/1 Pipeline is pending approval
ci/woodpecker/pr/docker/2 Pipeline is pending approval
ci/woodpecker/push/docker/2 Pipeline was successful
ci/woodpecker/push/docker/1 Pipeline was successful
Remove global 'when'
2025-01-13 17:21:23 +04:00

70 lines
1.5 KiB
YAML

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