2022-09-28 01:12:21 +00:00
|
|
|
variables:
|
|
|
|
- &platforms 'linux/amd64,linux/arm64'
|
2022-10-08 13:32:14 +00:00
|
|
|
- &golang 'golang:1.18'
|
2022-12-23 16:28:58 +00:00
|
|
|
- &build_plugin 'woodpeckerci/plugin-docker-buildx:latest'
|
2022-09-28 01:12:21 +00:00
|
|
|
|
2021-10-13 03:40:58 +00:00
|
|
|
pipeline:
|
2022-10-08 13:32:14 +00:00
|
|
|
vendor:
|
|
|
|
image: *golang
|
|
|
|
commands: go mod vendor
|
|
|
|
|
|
|
|
test:
|
|
|
|
image: *golang
|
|
|
|
commands: go test -cover ./...
|
|
|
|
|
|
|
|
publish-dryrun:
|
2022-12-23 16:28:58 +00:00
|
|
|
image: *build_plugin
|
2022-10-12 20:58:52 +00:00
|
|
|
pull: true
|
2022-02-25 23:03:49 +00:00
|
|
|
settings:
|
2022-09-28 01:12:21 +00:00
|
|
|
platforms: *platforms
|
2022-02-25 23:03:49 +00:00
|
|
|
repo: woodpeckerci/plugin-docker-buildx
|
2022-09-28 01:12:21 +00:00
|
|
|
dockerfile: Dockerfile.multiarch
|
|
|
|
dry_run: true
|
2022-02-25 23:03:49 +00:00
|
|
|
when:
|
|
|
|
event: pull_request
|
2022-10-08 14:18:12 +00:00
|
|
|
branch: main
|
2022-02-25 23:03:49 +00:00
|
|
|
|
2021-10-13 03:40:58 +00:00
|
|
|
publish:
|
2022-12-23 16:28:58 +00:00
|
|
|
image: *build_plugin
|
2021-12-18 11:33:30 +00:00
|
|
|
settings:
|
2022-09-28 01:12:21 +00:00
|
|
|
platforms: *platforms
|
2022-10-12 20:58:52 +00:00
|
|
|
repo: woodpeckerci/plugin-docker-buildx,codeberg.org/woodpecker-plugins/docker-buildx
|
2022-09-28 01:17:55 +00:00
|
|
|
auto_tag: true
|
2022-09-28 01:12:21 +00:00
|
|
|
dockerfile: Dockerfile.multiarch
|
2022-10-12 20:58:52 +00:00
|
|
|
logins:
|
|
|
|
# Default DockerHub login
|
|
|
|
- registry: https://index.docker.io/v1/
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
# Additional Codeberg login
|
|
|
|
- registry: https://codeberg.org
|
|
|
|
username:
|
|
|
|
from_secret: cb_username
|
|
|
|
password:
|
|
|
|
from_secret: cb_password
|
|
|
|
|
2022-02-25 23:03:49 +00:00
|
|
|
when:
|
2022-08-29 21:10:24 +00:00
|
|
|
event: [push, tag, cron]
|
|
|
|
branch: main
|