Initial plugin source.
This commit is contained in:
parent
a0d4b1b977
commit
d2236a555c
15 changed files with 666 additions and 0 deletions
36
.woodpecker/push.yaml
Normal file
36
.woodpecker/push.yaml
Normal file
|
@ -0,0 +1,36 @@
|
|||
when:
|
||||
instance: ci.schnabel.org
|
||||
repo: kokuwaio/dockerhub-metadata
|
||||
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/dockerhub-metadata:$CI_PIPELINE_NUMBER-ARCH
|
||||
--target=ci-registry.schnabel.org/kokuwaio/dockerhub-metadata:$CI_PIPELINE_NUMBER
|
||||
|
||||
docker.io: &push
|
||||
image: quay.io/skopeo/stable:v1.17.0
|
||||
depends_on: [manifest]
|
||||
commands:
|
||||
- echo "$AUTH" > /tmp/auth.json
|
||||
- skopeo copy --all --preserve-digests --dest-precompute-digests
|
||||
docker://ci-registry.schnabel.org/kokuwaio/dockerhub-metadata:$CI_PIPELINE_NUMBER
|
||||
docker://$URL/kokuwaio/dockerhub-metadata:latest
|
||||
environment:
|
||||
URL: docker.io
|
||||
AUTH: {from_secret: DOCKER_IO_AUTH}
|
||||
|
||||
ghcr.io:
|
||||
<<: *push
|
||||
environment:
|
||||
URL: ghcr.io
|
||||
AUTH: {from_secret: GHCR_IO_AUTH}
|
Loading…
Add table
Add a link
Reference in a new issue