From 3582757b89af09bbb8536db70fa6f2a8efa49b75 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Mon, 31 Jul 2023 04:22:23 +0200 Subject: [PATCH] Publish to quay.io too (#74) * build binarys with same golang version as docker version * adjust pipeline for v1.0.0 * publish images to quay.io too --- .woodpecker/test-release.yml | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/.woodpecker/test-release.yml b/.woodpecker/test-release.yml index cf93749..9280e98 100644 --- a/.woodpecker/test-release.yml +++ b/.woodpecker/test-release.yml @@ -1,8 +1,23 @@ variables: - - &golang 'golang:1.18-alpine' + - &golang 'golang:1.20-alpine' - &platforms 'linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/riscv64,linux/s390x' + # vars used on push / tag events only + - publish_logins: &publish_logins + # Default DockerHub login + - registry: https://index.docker.io/v1/ + username: + from_secret: docker_username + password: + from_secret: docker_password + # Additional Quay.IO login + - registry: https://quay.io + username: + from_secret: QUAY_IO_USER + password: + from_secret: QUAY_IO_TOKEN + - &publish_repos 'woodpeckerci/plugin-git,quay.io/woodpeckerci/plugin-git' -pipeline: +steps: version: group: prepare image: *golang @@ -34,7 +49,7 @@ pipeline: build-dryrun: image: woodpeckerci/plugin-docker-buildx:2 settings: - repo: woodpeckerci/plugin-git + repo: test/repo dockerfile: ./docker/Dockerfile.multiarch dry_run: true platforms: *platforms @@ -45,11 +60,11 @@ pipeline: release-next: image: woodpeckerci/plugin-docker-buildx:2 settings: - repo: woodpeckerci/plugin-git + repo: *publish_repos dockerfile: ./docker/Dockerfile.multiarch platforms: *platforms tags: next - secrets: [docker_username, docker_password] + logins: *publish_logins when: branch: ${CI_REPO_DEFAULT_BRANCH} event: push @@ -57,13 +72,13 @@ pipeline: release-tag: image: woodpeckerci/plugin-docker-buildx:2 settings: - repo: woodpeckerci/plugin-git + repo: *publish_repos dockerfile: ./docker/Dockerfile.multiarch platforms: *platforms auto_tag: true # remove line below if you can read it on a release branch and it's not the latest release branch tags: latest - secrets: [docker_username, docker_password] + logins: *publish_logins when: event: tag