Init pipeline
This commit is contained in:
parent
502cfdd1ef
commit
b07facc457
2 changed files with 88 additions and 0 deletions
14
.woodpecker/release.yml
Normal file
14
.woodpecker/release.yml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
when:
|
||||||
|
event: push
|
||||||
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
release:
|
||||||
|
image: woodpeckerci/plugin-ready-release-go:1.0.3
|
||||||
|
pull: true
|
||||||
|
settings:
|
||||||
|
release_branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
forge_type: github
|
||||||
|
git_email: woodpecker-bot@obermui.de
|
||||||
|
github_token:
|
||||||
|
from_secret: GITHUB_TOKEN
|
74
.woodpecker/test-release.yml
Normal file
74
.woodpecker/test-release.yml
Normal file
|
@ -0,0 +1,74 @@
|
||||||
|
when:
|
||||||
|
- event: pull_request
|
||||||
|
- event: tag
|
||||||
|
- event: push
|
||||||
|
branch:
|
||||||
|
- ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
- renovate/*
|
||||||
|
|
||||||
|
variables:
|
||||||
|
- &platforms 'linux/amd64,linux/arm64,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 'docker.io/woodpeckerci/plugin-kaniko,quay.io/woodpeckerci/plugin-kaniko'
|
||||||
|
|
||||||
|
steps:
|
||||||
|
lint:
|
||||||
|
image: docker.io/koalaman/shellcheck
|
||||||
|
commands:
|
||||||
|
- shellcheck *.sh
|
||||||
|
|
||||||
|
# TODO: add test of fresh build kaniko
|
||||||
|
|
||||||
|
build-dryrun:
|
||||||
|
image: woodpeckerci/plugin-docker-buildx:2.3.0
|
||||||
|
depends_on:
|
||||||
|
- lint
|
||||||
|
settings:
|
||||||
|
repo: test/repo
|
||||||
|
dockerfile: ./docker/Dockerfile.multiarch
|
||||||
|
dry_run: true
|
||||||
|
platforms: *platforms
|
||||||
|
tags: latest
|
||||||
|
when:
|
||||||
|
- event: pull_request
|
||||||
|
- event: push
|
||||||
|
branch: renovate/*
|
||||||
|
|
||||||
|
release-next:
|
||||||
|
image: woodpeckerci/plugin-docker-buildx:2.3.0
|
||||||
|
settings:
|
||||||
|
repo: *publish_repos
|
||||||
|
dockerfile: ./docker/Dockerfile.multiarch
|
||||||
|
platforms: *platforms
|
||||||
|
tags: next
|
||||||
|
logins: *publish_logins
|
||||||
|
when:
|
||||||
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
event: push
|
||||||
|
|
||||||
|
release-tag:
|
||||||
|
image: woodpeckerci/plugin-docker-buildx:2.3.0
|
||||||
|
depends_on: vendor
|
||||||
|
settings:
|
||||||
|
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
|
||||||
|
logins: *publish_logins
|
||||||
|
when:
|
||||||
|
event: tag
|
Loading…
Add table
Add a link
Reference in a new issue