CI: use new yaml syntax (#61)

Reviewed-on: https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/61
This commit is contained in:
6543 2023-04-30 13:21:32 +00:00
parent 2a8de61424
commit a5ea4573b0

View File

@ -1,7 +1,11 @@
variables: variables:
- &platforms 'linux/amd64,linux/arm64'
- &golang 'golang:1.20' - &golang 'golang:1.20'
- &build_plugin 'woodpeckerci/plugin-docker-buildx:2' - &build_plugin 'woodpeckerci/plugin-docker-buildx:2'
- base_settings: &base_buildx_settings
platforms: 'linux/amd64,linux/arm64'
dockerfile: Dockerfile.multiarch
auto_tag: true
repo: woodpeckerci/plugin-docker-buildx,codeberg.org/woodpecker-plugins/docker-buildx
pipeline: pipeline:
vendor: vendor:
@ -16,9 +20,8 @@ pipeline:
image: *build_plugin image: *build_plugin
pull: true pull: true
settings: settings:
platforms: *platforms <<: *base_buildx_settings
repo: woodpeckerci/plugin-docker-buildx repo: test
dockerfile: Dockerfile.multiarch
dry_run: true dry_run: true
when: when:
event: pull_request event: pull_request
@ -27,10 +30,7 @@ pipeline:
publish: publish:
image: *build_plugin image: *build_plugin
settings: settings:
platforms: *platforms <<: *base_buildx_settings
repo: woodpeckerci/plugin-docker-buildx,codeberg.org/woodpecker-plugins/docker-buildx
auto_tag: true
dockerfile: Dockerfile.multiarch
logins: logins:
# Default DockerHub login # Default DockerHub login
- registry: https://index.docker.io/v1/ - registry: https://index.docker.io/v1/