woodpecker-docker-buildx/.woodpecker.yml

45 lines
981 B
YAML
Raw Normal View History

variables:
- &golang 'golang:1.20'
- &build_plugin 'woodpeckerci/plugin-docker-buildx:2'
- base_settings: &base_buildx_settings
platforms: 'linux/amd64,linux/arm64'
dockerfile: Dockerfile.multiarch
auto_tag: true
2023-10-08 14:02:56 +00:00
repo: git.polynom.me/papatutuwawa/docker-buildx
steps:
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
pull: true
settings:
<<: *base_buildx_settings
repo: test
dry_run: true
when:
event: pull_request
branch: main
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:
<<: *base_buildx_settings
logins:
# Additional Codeberg login
2023-10-08 14:02:56 +00:00
- registry: https://git.polynom.me
username:
from_secret: cb_username
password:
from_secret: cb_password
when:
2022-08-29 21:10:24 +00:00
event: [push, tag, cron]
branch: main