a
This commit is contained in:
Stephan Schnabel 2025-06-17 23:18:14 +02:00
parent 67a1be76e6
commit c16bfddb0d
Signed by: stephan.schnabel
SSH key fingerprint: SHA256:99zuzxNGFb5/5P+E/O7ONU2qhUojUe/D8rIPTW+9Xp0
13 changed files with 364 additions and 369 deletions

View file

@ -1,38 +1,56 @@
when:
instance: ci.kokuwa.io
repo: woodpecker/yamllint
event: [manual, push, pull_request]
branch: main
path: [.woodpecker/build.yaml, .woodpecker/push.yaml, Dockerfile, Dockerfile.dockerignore, entrypoint.sh]
matrix:
PLATFORM: [amd64, arm64]
labels:
platform: linux/${PLATFORM}
path: [.woodpecker/build.yaml, Dockerfile, Dockerfile.dockerignore, entrypoint.sh]
steps:
build:
image: gcr.io/kaniko-project/executor:v1.23.2-debug
commands: /kaniko/executor
--context=$CI_WORKSPACE
--destination=ci-registry.schnabel.org/kokuwaio/yamllint:$CI_PIPELINE_NUMBER-$PLATFORM
--reproducible
--cache
--cache-copy-layers
--cache-run-layers
--cache-repo=$DOCKER_CACHE/cache/kokuwaio/yamllint
--insecure-registry=$DOCKER_CACHE
--insecure-registry=$DOCKER_MIRROR
--registry-mirror=$DOCKER_MIRROR
--skip-default-registry-fallback
--label=org.opencontainers.image.title="Yamllint Plugin"
--label=org.opencontainers.image.description="A Woodpecker CI plugin for yamllint to lint yaml files."
--label=org.opencontainers.image.url=$CI_REPO_URL
--label=org.opencontainers.image.documentation=$CI_REPO_URL
--label=org.opencontainers.image.source=$CI_REPO_CLONE_URL
--label=org.opencontainers.image.vendor=kokuwa.io
--label=org.opencontainers.image.licenses=GPL-3.0-or-later
--label=org.opencontainers.image.version=1.37.0
image: kokuwaio/buildctl
settings: &settings
name: registry.kokuwa.io/kokuwaio/yamllint:ci-${CI_PIPELINE_NUMBER}
auth:
registry.kokuwa.io:
username: {from_secret: kokuwa_io_username}
password: {from_secret: kokuwa_io_password}
platform: [linux/amd64, linux/arm64]
annotation:
org.opencontainers.image.title: Yamllint WoodpeckerCI Plugin
org.opencontainers.image.description: A WoodpeckerCI plugin for yamllint to lint yaml files.
org.opencontainers.image.url: $CI_REPO_URL
org.opencontainers.image.documentation: $CI_REPO_URL/README.md
org.opencontainers.image.source: $CI_REPO_CLONE_URL
org.opencontainers.image.revision: $CI_COMMIT_SHA
org.opencontainers.image.vendor: kokuwa.io
org.opencontainers.image.licenses: EUPL-1.2
org.opencontainers.image.ref.name: kokuwaio/yamllint
org.opencontainers.image.version: 1.36.0
when:
event: pull_request
test:
image: ci-registry.schnabel.org/kokuwaio/yamllint:${CI_PIPELINE_NUMBER}-${PLATFORM}
pull: true
push:
image: kokuwaio/buildctl
settings:
<<: *settings
name:
- registry.kokuwa.io/kokuwaio/yamllint:latest
- registry.kokuwa.io/kokuwaio/yamllint:1.36.0
- docker.io/kokuwaio/yamllint:latest
- docker.io/kokuwaio/yamllint:1.36.0
- ghcr.io/kokuwaio/yamllint:latest
- ghcr.io/kokuwaio/yamllint:1.36.0
auth:
"https://index.docker.io/v1/":
username: {from_secret: docker_io_username}
password: {from_secret: docker_io_password}
ghcr.io:
username: {from_secret: ghcr_io_username}
password: {from_secret: ghcr_io_password}
registry.kokuwa.io:
username: {from_secret: kokuwa_io_username}
password: {from_secret: kokuwa_io_password}
when:
event: [manual, push]
branch: main