A WoodpeckerCI plugin to write metadata to DockerHub repositories.
3.3K
A WoodpeckerCI plugin to write metadata to DockerHub repositories.
Also usable with Gitlab, Github or locally, see examples for usage.
Woodpecker:
steps:
dockerhub:
depends_on: []
image: kokuwaio/dockerhub-metadata
settings:
repository: kokuwaio/example-image
description-short: This image does that!
categories: [developer-tools, integration-and-delivery]
username: {from_secret: DOCKERHUB_USERNAME}
password: {from_secret: DOCKERHUB_PASSWORD}
when:
event: push
branch: main
path: README.md
Gitlab: (using script is needed because of https://gitlab.com/gitlab-org/gitlab/-/issues/19717)
dockerhub:
needs: []
stage: deploy
image:
name: kokuwaio/dockerhub-metadata
entrypoint: [""]
script: [/usr/local/bin/entrypoint.sh]
variables:
PLUGIN_REPOSITORY: kokuwaio/example-image
PLUGIN_DESCRIPTION_SHORT: This image does that!
PLUGIN_CATEGORIES: developer-tools,integration-and-delivery
rules:
- if: $CI_PIPELINE_SOURCE == "push"
changes: [README.md]
| Settings Name | Environment | Default | Description |
|---|---|---|---|
repository | PLUGIN_REPOSITORY | none | Repository to update with metadata, e.g. kokuwaio/example |
description-short | PLUGIN_DESCRIPTION_SHORT | none | Short description for repository. |
description-file | PLUGIN_DESCRIPTION_FILE | README.md | File to read full description from |
categories | PLUGIN_CATEGORIES | [] | List of categories to set (maximum 3) |
username | PLUGIN_USERNAME | none | Username for Dockerhub login |
password | PLUGIN_PASSWORD | none | Password for Dockerhub login, PAT is not supported! |
Content type
Image
Digest
sha256:4966c2688…
Size
11.8 MB
Last updated
about 1 hour ago
docker pull kokuwaio/dockerhub-metadata