dockerhub-metadata/.woodpecker/build.yaml
Stephan Schnabel 29bd3aa4d7
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/test/1 Pipeline was successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test/2 Pipeline was successful
ci/woodpecker/push/dockerhub Pipeline was successful
Initial draft of plugin.
2025-06-17 15:27:48 +02:00

53 lines
1.9 KiB
YAML

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]
steps:
build:
image: kokuwaio/buildctl
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: latest
when:
event: pull_request
push:
image: kokuwaio/buildctl
settings:
<<: *settings
name:
- registry.kokuwa.io/kokuwaio/dockerhub-metadata:latest
- docker.io/kokuwaio/dockerhub-metadata:latest
- ghcr.io/kokuwaio/dockerhub-metadata: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