4add961b4c
base image (https://hub.docker.com/_/docker/tags?page=1&name=20.10-dind) do support amd64 and arm64 so we can do too Reviewed-on: https://codeberg.org/woodpecker-plugins/plugin-docker-buildx/pulls/21
31 lines
726 B
YAML
31 lines
726 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
|
|
tags: latest, ${CI_COMMIT_TAG}
|
|
dockerfile: Dockerfile.multiarch
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
when:
|
|
event: [push, tag, cron]
|
|
branch: main
|