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

View file

@ -1,9 +1,9 @@
when:
instance: ci.schnabel.org
repo: kokuwaio/yamllint
event: push
instance: ci.kokuwa.io
repo: woodpecker/yamllint
event: [manual, push]
branch: main
path: README.md
path: [.woodpecker/dockerhub.yaml, README.md]
steps:
@ -11,7 +11,7 @@ steps:
image: kokuwaio/dockerhub-metadata
settings:
repository: kokuwaio/yamllint
description-short: A Woodpecker CI plugin for yamllint to lint yaml files.
description-short: A WoodpeckerCI plugin for yamllint to lint yaml files.
categories: [developer-tools, integration-and-delivery]
username: {from_secret: DOCKERHUB_USERNAME}
password: {from_secret: DOCKERHUB_PASSWORD}
username: {from_secret: dockerhub_username}
password: {from_secret: dockerhub_password}

View file

@ -1,5 +1,5 @@
when:
event: [cron, manual, push, pull_request]
event: [manual, push, pull_request]
branch: main
path: [.woodpecker/lint.yaml, renovate.json, "**/*.yaml", "**/*.md", "**/*.sh", "**/Dockerfile"]
@ -23,7 +23,7 @@ steps:
dockerfile:
image: kokuwaio/hadolint
depends_on: []
when: [path: [.woodpecker/lint.yaml, .hadolint.yaml, "**/Dockerfile"]]
when: [path: [.woodpecker/lint.yaml, "**/Dockerfile"]]
shellcheck:
image: kokuwaio/shellcheck

View file

@ -1,39 +0,0 @@
when:
instance: ci.schnabel.org
repo: kokuwaio/yamllint
event: push
branch: main
path: [.woodpecker/build.yaml, .woodpecker/push.yaml, Dockerfile, Dockerfile.dockerignore, entrypoint.sh]
depends_on: [build]
skip_clone: true
steps:
manifest:
image: mplatform/manifest-tool:alpine-v2.1.9
commands: manifest-tool push from-args
--platforms=linux/amd64,linux/arm64
--template=ci-registry.schnabel.org/kokuwaio/yamllint:$CI_PIPELINE_NUMBER-ARCH
--target=ci-registry.schnabel.org/kokuwaio/yamllint:$CI_PIPELINE_NUMBER
docker.io: &push
image: quay.io/skopeo/stable:v1.18.0
depends_on: [manifest]
commands:
- echo "$AUTH" > /tmp/auth.json
- skopeo copy --all --preserve-digests --dest-precompute-digests
docker://ci-registry.schnabel.org/kokuwaio/yamllint:$CI_PIPELINE_NUMBER
docker://$URL/kokuwaio/yamllint:1.37.0
- skopeo copy --all --preserve-digests --dest-precompute-digests
docker://ci-registry.schnabel.org/kokuwaio/yamllint:$CI_PIPELINE_NUMBER
docker://$URL/kokuwaio/yamllint:latest
environment:
URL: docker.io
AUTH: {from_secret: DOCKER_IO_AUTH}
ghcr.io:
<<: *push
environment:
URL: ghcr.io
AUTH: {from_secret: GHCR_IO_AUTH}

View file

@ -1,11 +1,11 @@
when:
instance: ci.schnabel.org
repo: kokuwaio/yamllint
event: push
instance: ci.kokuwa.io
repo: woodpecker/yamllint
event: [manual, push, pull_request]
branch: main
path: [.woodpecker/build.yaml, .woodpecker/push.yaml, .woodpecker/test.yaml, Dockerfile, Dockerfile.dockerignore, entrypoint.sh]
path: [.woodpecker/build.yaml, Dockerfile, Dockerfile.dockerignore, entrypoint.sh]
depends_on: [push]
depends_on: [build]
matrix:
PLATFORM: [amd64, arm64]
labels:
@ -13,6 +13,22 @@ labels:
steps:
test:
image: kokuwaio/yamllint
pr:
image: registry.kokuwa.io/kokuwaio/yamllint:ci-${CI_PIPELINE_NUMBER}
when:
event: pull_request
kokuwa.io: &version
image: registry.kokuwa.io/kokuwaio/yamllint
pull: true
when:
event: [manual, push]
branch: main
docker.io:
image: docker.io/kokuwaio/yamllint
<<: *version
ghcr.io:
image: ghcr.io/kokuwaio/yamllint
<<: *version