Auto stash 123before merge of "main" and "origin/renovate/gcr.io-kaniko-project-executor-1.24.x"
Some checks failed
ci/woodpecker/pr/test/1 Pipeline was successful
ci/woodpecker/pr/test/2 Pipeline was successful
ci/woodpecker/pr/lint Pipeline failed
ci/woodpecker/pr/build Pipeline was successful

This commit is contained in:
Stephan Schnabel 2025-06-13 15:44:12 +02:00
parent 1c50472399
commit 92363eff7a
Signed by: stephan.schnabel
SSH key fingerprint: SHA256:99zuzxNGFb5/5P+E/O7ONU2qhUojUe/D8rIPTW+9Xp0
13 changed files with 425 additions and 310 deletions

View file

@ -1,33 +1,53 @@
when:
instance: ci.kokuwa.io
repo: woodpecker/dockerhub-metadata
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.24.0-debug
commands: /kaniko/executor
--context=$CI_WORKSPACE
--destination=ci-registry.schnabel.org/kokuwaio/dockerhub-metadata:$CI_PIPELINE_NUMBER-$PLATFORM
--reproducible
--cache
--cache-copy-layers
--cache-run-layers
--cache-repo=$DOCKER_CACHE/cache/kokuwaio/dockerhub-metadata
--insecure-registry=$DOCKER_CACHE
--insecure-registry=$DOCKER_MIRROR
--registry-mirror=$DOCKER_MIRROR
--skip-default-registry-fallback
--label=org.opencontainers.image.title="Dockerhub Metadata Plugin"
--label=org.opencontainers.image.description="A Woodpecker CI plugin to write metadata to DockerHub repositories."
--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
image: kokuwaio/buildctl:v0.22.0
settings: &settings
name: registry.kokuwa.io/kokuwaio/dockerhub-metadata: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: DockerHub Metadata WoodpeckerCI Plugin
org.opencontainers.image.description: A WoodpeckerCI plugin to write metadata to DockerHub repositories.
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/dockerhub-metadata
org.opencontainers.image.version: v0.22.0
when:
event: pull_request
push:
image: kokuwaio/buildctl:v0.22.0
settings:
<<: *settings
name:
- registry.kokuwa.io/kokuwaio/dockerhub-metadata:latest
- docker.io/kokuwaio/buildctl:latest
- ghcr.io/kokuwaio/buildctl:latest
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/dockerhub-metadata
event: push
instance: ci.kokuwa.io
repo: woodpecker/dockerhub-metadata
event: [manual, push]
branch: main
path: [.woodpecker/dockerhub.yaml, .woodpecker/build.yaml, .woodpecker/push.yaml, Dockerfile, Dockerfile.dockerignore, entrypoint.sh, README.md]
path: [.woodpecker/dockerhub.yaml, README.md]
steps:
@ -12,7 +12,7 @@ steps:
pull: true
settings:
repository: kokuwaio/dockerhub-metadata
description-short: A Woodpecker CI plugin to write metadata to DockerHub repositories.
description-short: A WoodpeckerCI plugin to write metadata to DockerHub repositories.
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

36
.woodpecker/test.yaml Normal file
View file

@ -0,0 +1,36 @@
when:
instance: ci.kokuwa.io
repo: woodpecker/dockerhub-metadata
event: [manual, push, pull_request]
branch: main
path: [.woodpecker/build.yaml, Dockerfile, Dockerfile.dockerignore, entrypoint.sh]
depends_on: [build]
matrix:
PLATFORM: [amd64, arm64]
labels:
platform: linux/${PLATFORM}
steps:
pr:
image: registry.kokuwa.io/kokuwaio/dockerhub-metadata:ci-${CI_PIPELINE_NUMBER}
commands: curl https://hub.docker.com/v2/namespaces/kokuwaio/repositories/dockerhub-metadata/tags --silent --fail | jq
when:
event: pull_request
kokuwa.io: &version
image: registry.kokuwa.io/kokuwaio/dockerhub-metadata:latest
pull: true
commands: curl https://hub.docker.com/v2/namespaces/kokuwaio/repositories/dockerhub-metadata/tags --silent --fail | jq
when:
event: [manual, push]
branch: main
docker.io:
image: docker.io/kokuwaio/dockerhub-metadata:latest
<<: *version
ghcr.io:
image: ghcr.io/kokuwaio/dockerhub-metadata:latest
<<: *version