woodpecker-docker-buildx/.woodpecker/main.yml
2022-09-28 03:17:55 +02:00

31 lines
710 B
YAML

branches: main
variables:
- &platforms 'linux/amd64,linux/arm64'
pipeline:
dryrun:
image: woodpeckerci/plugin-docker-buildx:v20.10.18
settings:
platforms: *platforms
repo: woodpeckerci/plugin-docker-buildx
dockerfile: Dockerfile.multiarch
dry_run: true
when:
event: pull_request
publish:
image: woodpeckerci/plugin-docker-buildx:v20.10.18
settings:
platforms: *platforms
repo: woodpeckerci/plugin-docker-buildx
auto_tag: true
dockerfile: Dockerfile.multiarch
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
event: [push, tag, cron]
branch: main