2022-09-28 01:12:21 +00:00
|
|
|
variables:
|
2023-03-22 15:26:29 +00:00
|
|
|
- &golang 'golang:1.20'
|
2022-12-23 16:33:24 +00:00
|
|
|
- &build_plugin 'woodpeckerci/plugin-docker-buildx:2'
|
2023-04-30 13:21:32 +00:00
|
|
|
- base_settings: &base_buildx_settings
|
2023-10-08 14:26:23 +00:00
|
|
|
platforms: 'linux/arm64'
|
2023-04-30 13:21:32 +00:00
|
|
|
dockerfile: Dockerfile.multiarch
|
|
|
|
auto_tag: true
|
2023-10-08 14:02:56 +00:00
|
|
|
repo: git.polynom.me/papatutuwawa/docker-buildx
|
2022-09-28 01:12:21 +00:00
|
|
|
|
2023-07-31 02:36:36 +00:00
|
|
|
steps:
|
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:
|
2023-04-30 13:21:32 +00:00
|
|
|
<<: *base_buildx_settings
|
|
|
|
repo: test
|
2022-09-28 01:12:21 +00:00
|
|
|
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:
|
2023-04-30 13:21:32 +00:00
|
|
|
<<: *base_buildx_settings
|
2022-10-12 20:58:52 +00:00
|
|
|
logins:
|
|
|
|
# Additional Codeberg login
|
2023-10-08 14:02:56 +00:00
|
|
|
- registry: https://git.polynom.me
|
2022-10-12 20:58:52 +00:00
|
|
|
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
|