Initial draft of plugin.
All checks were successful
ci/woodpecker/push/dockerhub Pipeline was successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Stephan Schnabel 2025-06-18 22:22:07 +02:00
parent a51b159186
commit aa70d85bee
Signed by: stephan.schnabel
SSH key fingerprint: SHA256:99zuzxNGFb5/5P+E/O7ONU2qhUojUe/D8rIPTW+9Xp0
17 changed files with 950 additions and 0 deletions

196
.woodpecker/build.yaml Normal file
View file

@ -0,0 +1,196 @@
when:
instance: ci.kokuwa.io
repo: woodpecker/docker
event: [manual, push, pull_request]
branch: main
path: [.woodpecker/build.yaml, Dockerfile, Dockerfile.dockerignore, entrypoint.sh]
variables:
- step: &pr
image: kokuwaio/buildctl
depends_on: []
settings: &settings-pr
platform: [linux/amd64, linux/arm64]
auth:
registry.kokuwa.io:
username: {from_secret: kokuwa_io_username}
password: {from_secret: kokuwa_io_password}
annotation: &annotation
org.opencontainers.image.title: Docker CLI for WoodpeckerCI
org.opencontainers.image.description: Docker CLI for usage in WoodpeckerCI.
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/docker-cli
org.opencontainers.image.version: 28.2.2
when:
event: pull_request
- step: &push
image: kokuwaio/buildctl
depends_on: []
settings: &settings-push
<<: *settings-pr
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
steps:
dockerd-pr:
<<: *pr
settings:
<<: *settings-pr
name: registry.kokuwa.io/kokuwaio/dockerd:ci-${CI_PIPELINE_NUMBER}
target: dockerd
annotation:
<<: *annotation
org.opencontainers.image.title: Docker Daemon for WoodpeckerCI
org.opencontainers.image.description: Docker daemon for usage in WoodpeckerCI.
org.opencontainers.image.ref.name: kokuwaio/dockerd
dockerd-rootless-pr:
<<: *pr
settings:
<<: *settings-pr
name: registry.kokuwa.io/kokuwaio/dockerd:ci-${CI_PIPELINE_NUMBER}-rootless
target: dockerd-rootless
annotation:
<<: *annotation
org.opencontainers.image.title: Docker Daemon for WoodpeckerCI
org.opencontainers.image.description: Docker daemon for usage in WoodpeckerCI.
org.opencontainers.image.ref.name: kokuwaio/dockerd
cli-pr:
<<: *pr
settings:
<<: *settings-pr
name: registry.kokuwa.io/kokuwaio/docker-cli:ci-${CI_PIPELINE_NUMBER}
target: cli
cli-git-pr:
<<: *pr
depends_on: [cli-pr]
settings:
<<: *settings-pr
name: registry.kokuwa.io/kokuwaio/docker-cli:ci-${CI_PIPELINE_NUMBER}-git
target: cli-git
cli-az-pr:
<<: *pr
depends_on: [cli-pr]
settings:
<<: *settings-pr
name: registry.kokuwa.io/kokuwaio/docker-cli:ci-${CI_PIPELINE_NUMBER}-az
target: cli-az
cli-az-git-pr:
<<: *pr
depends_on: [cli-az-pr]
settings:
<<: *settings-pr
name: registry.kokuwa.io/kokuwaio/docker-cli:ci-${CI_PIPELINE_NUMBER}-az-git
target: cli-az-git
dockerd:
<<: *push
settings:
<<: *settings-push
name:
- registry.kokuwa.io/kokuwaio/dockerd:latest
- registry.kokuwa.io/kokuwaio/dockerd:28.2.2
- docker.io/kokuwaio/dockerd:latest
- docker.io/kokuwaio/dockerd:28.2.2
- ghcr.io/kokuwaio/dockerd:latest
- ghcr.io/kokuwaio/dockerd:28.2.2
target: dockerd
annotation:
<<: *annotation
org.opencontainers.image.title: Docker Daemon for WoodpeckerCI
org.opencontainers.image.description: Docker daemon for usage in WoodpeckerCI.
org.opencontainers.image.ref.name: kokuwaio/dockerd
dockerd-rootless:
<<: *push
settings:
<<: *settings-push
name:
- registry.kokuwa.io/kokuwaio/dockerd:rootless
- registry.kokuwa.io/kokuwaio/dockerd:28.2.2-rootless
- docker.io/kokuwaio/dockerd:rootless
- docker.io/kokuwaio/dockerd:28.2.2-rootless
- ghcr.io/kokuwaio/dockerd:rootless
- ghcr.io/kokuwaio/dockerd:28.2.2-rootless
target: dockerd-rootless
annotation:
<<: *annotation
org.opencontainers.image.title: Docker Daemon for WoodpeckerCI
org.opencontainers.image.description: Docker daemon for usage in WoodpeckerCI.
org.opencontainers.image.ref.name: kokuwaio/dockerd
cli:
<<: *push
settings:
<<: *settings-push
name:
- registry.kokuwa.io/kokuwaio/docker-cli:latest
- registry.kokuwa.io/kokuwaio/docker-cli:28.2.2
- docker.io/kokuwaio/docker-cli:latest
- docker.io/kokuwaio/docker-cli:28.2.2
- ghcr.io/kokuwaio/docker-cli:latest
- ghcr.io/kokuwaio/docker-cli:28.2.2
target: cli
cli-git:
<<: *push
depends_on: [cli]
settings:
<<: *settings-push
name:
- registry.kokuwa.io/kokuwaio/docker-cli:git
- registry.kokuwa.io/kokuwaio/docker-cli:28.2.2-git
- docker.io/kokuwaio/docker-cli:git
- docker.io/kokuwaio/docker-cli:28.2.2-git
- ghcr.io/kokuwaio/docker-cli:git
- ghcr.io/kokuwaio/docker-cli:28.2.2-git
target: cli-git
cli-az:
<<: *push
depends_on: [cli]
settings:
<<: *settings-push
name:
- registry.kokuwa.io/kokuwaio/docker-cli:az
- registry.kokuwa.io/kokuwaio/docker-cli:28.2.2-az
- docker.io/kokuwaio/docker-cli:az
- docker.io/kokuwaio/docker-cli:28.2.2-az
- ghcr.io/kokuwaio/docker-cli:az
- ghcr.io/kokuwaio/docker-cli:28.2.2-az
target: cli-az
cli-az-git:
<<: *push
depends_on: [cli-az]
settings:
<<: *settings-push
name:
- registry.kokuwa.io/kokuwaio/docker-cli:az-git
- registry.kokuwa.io/kokuwaio/docker-cli:28.2.2-az-git
- docker.io/kokuwaio/docker-cli:az-git
- docker.io/kokuwaio/docker-cli:28.2.2-az-git
- ghcr.io/kokuwaio/docker-cli:az-git
- ghcr.io/kokuwaio/docker-cli:28.2.2-az-git
target: cli-az-git

View file

@ -0,0 +1,28 @@
when:
instance: ci.kokuwa.io
repo: woodpecker/docker
event: [manual, push]
branch: main
path: [.woodpecker/dockerhub.yaml, README.md]
steps:
dockerd:
image: kokuwaio/dockerhub-metadata
depends_on: []
settings:
repository: kokuwaio/dockerd
description-short: Docker daemon for usage in WoodpeckerCI.
categories: [developer-tools, integration-and-delivery]
username: {from_secret: dockerhub_username}
password: {from_secret: dockerhub_password}
docker-cli:
image: kokuwaio/dockerhub-metadata
depends_on: []
settings:
repository: kokuwaio/docker-cli
description-short: Docker CLI for usage in WoodpeckerCI.
categories: [developer-tools, integration-and-delivery]
username: {from_secret: dockerhub_username}
password: {from_secret: dockerhub_password}

31
.woodpecker/lint.yaml Normal file
View file

@ -0,0 +1,31 @@
when:
event: [manual, push, pull_request]
branch: main
path: [.woodpecker/lint.yaml, renovate.json, "**/*.yaml", "**/*.md", "**/*.sh", "**/Dockerfile"]
steps:
renovate:
image: kokuwaio/renovate-config-validator
depends_on: []
when: [path: [.woodpecker/lint.yaml, renovate.json]]
yaml:
image: kokuwaio/yamllint
depends_on: []
when: [path: [.woodpecker/lint.yaml, .yamllint.yaml, "**/*.yaml"]]
markdown:
image: kokuwaio/markdownlint
depends_on: []
when: [path: [.woodpecker/lint.yaml, .markdownlint.yaml, "**/*.md"]]
dockerfile:
image: kokuwaio/hadolint
depends_on: []
when: [path: [.woodpecker/lint.yaml, "**/Dockerfile"]]
shellcheck:
image: kokuwaio/shellcheck
depends_on: []
when: [path: [.woodpecker/lint.yaml, "**/*.sh"]]

31
.woodpecker/test.yaml Normal file
View file

@ -0,0 +1,31 @@
when:
instance: ci.kokuwa.io
repo: woodpecker/docker
event: pull_request
path: [.woodpecker/build.yaml, .woodpecker/test.yaml, Dockerfile, Dockerfile.dockerignore, entrypoint.sh]
depends_on: [build]
matrix:
PLATFORM: [amd64, arm64]
labels:
platform: linux/${PLATFORM}
services:
- name: dockerd
image: registry.kokuwa.io/kokuwaio/dockerd:ci-${CI_PIPELINE_NUMBER}-rootless
ports: [2375]
privileged: true
steps:
info:
image: registry.kokuwa.io/kokuwaio/docker-cli:ci-${CI_PIPELINE_NUMBER}
commands: docker info
pull:
image: registry.kokuwa.io/kokuwaio/docker-cli:ci-${CI_PIPELINE_NUMBER}
commands: docker pull bash
run:
image: registry.kokuwa.io/kokuwaio/docker-cli:ci-${CI_PIPELINE_NUMBER}
commands: docker run --rm bash uname -a