woodpecker-docker-buildx/.woodpecker.yml
Alexander "PapaTutuWawa ed9d089383
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Only build arm64
2023-10-08 16:26:23 +02:00

45 lines
969 B
YAML

variables:
- &golang 'golang:1.20'
- &build_plugin 'woodpeckerci/plugin-docker-buildx:2'
- base_settings: &base_buildx_settings
platforms: 'linux/arm64'
dockerfile: Dockerfile.multiarch
auto_tag: true
repo: git.polynom.me/papatutuwawa/docker-buildx
steps:
vendor:
image: *golang
commands: go mod vendor
test:
image: *golang
commands: go test -cover ./...
publish-dryrun:
image: *build_plugin
pull: true
settings:
<<: *base_buildx_settings
repo: test
dry_run: true
when:
event: pull_request
branch: main
publish:
image: *build_plugin
settings:
<<: *base_buildx_settings
logins:
# Additional Codeberg login
- registry: https://git.polynom.me
username:
from_secret: cb_username
password:
from_secret: cb_password
when:
event: [push, tag, cron]
branch: main