5868a6e6a8
https://codeberg.org/woodpecker-plugins/plugin-docker-buildx/pulls/27#issuecomment-639378
This reverts commit 97917ac4b9
.
39 lines
858 B
YAML
39 lines
858 B
YAML
variables:
|
|
- &platforms 'linux/amd64,linux/arm64'
|
|
- &golang 'golang:1.18'
|
|
|
|
pipeline:
|
|
vendor:
|
|
image: *golang
|
|
commands: go mod vendor
|
|
|
|
test:
|
|
image: *golang
|
|
commands: go test -cover ./...
|
|
|
|
publish-dryrun:
|
|
image: woodpeckerci/plugin-docker-buildx:1.0
|
|
settings:
|
|
platforms: *platforms
|
|
repo: woodpeckerci/plugin-docker-buildx
|
|
dockerfile: Dockerfile.multiarch
|
|
dry_run: true
|
|
when:
|
|
event: pull_request
|
|
branch: main
|
|
|
|
publish:
|
|
image: woodpeckerci/plugin-docker-buildx:1.0
|
|
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
|