From a5ea4573b0d1bc3f05d7f35d7e1de764ee984f4c Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Sun, 30 Apr 2023 13:21:32 +0000 Subject: [PATCH] CI: use new yaml syntax (#61) Reviewed-on: https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/61 --- .woodpecker.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 98490a8..dbcaa3c 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,7 +1,11 @@ variables: - - &platforms 'linux/amd64,linux/arm64' - &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 + repo: woodpeckerci/plugin-docker-buildx,codeberg.org/woodpecker-plugins/docker-buildx pipeline: vendor: @@ -16,9 +20,8 @@ pipeline: image: *build_plugin pull: true settings: - platforms: *platforms - repo: woodpeckerci/plugin-docker-buildx - dockerfile: Dockerfile.multiarch + <<: *base_buildx_settings + repo: test dry_run: true when: event: pull_request @@ -27,10 +30,7 @@ pipeline: publish: image: *build_plugin settings: - platforms: *platforms - repo: woodpeckerci/plugin-docker-buildx,codeberg.org/woodpecker-plugins/docker-buildx - auto_tag: true - dockerfile: Dockerfile.multiarch + <<: *base_buildx_settings logins: # Default DockerHub login - registry: https://index.docker.io/v1/