Skip to content

Commit

Permalink
Publish to quay.io too (#74)
Browse files Browse the repository at this point in the history
* build binarys with same golang version as docker version

* adjust pipeline for v1.0.0

* publish images to quay.io too
  • Loading branch information
6543 authored Jul 31, 2023
1 parent 68f0ce5 commit 3582757
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions .woodpecker/test-release.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand All @@ -45,25 +60,25 @@ 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

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

Expand Down

0 comments on commit 3582757

Please sign in to comment.