2024-11-08 19:07:28 -06:00
|
|
|
when:
|
|
|
|
- event: push
|
|
|
|
branch: main
|
|
|
|
path:
|
|
|
|
- "mediawiki/**"
|
|
|
|
- ".woodpecker/mediawiki.yaml"
|
|
|
|
- event: tag
|
|
|
|
ref: "refs/tags/mediawiki/*"
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
image: quay.io/buildah/stable
|
|
|
|
commands:
|
2024-11-08 19:08:42 -06:00
|
|
|
- buildah build --manifest dev.ccchb.de/ccchb/oci-images/mediawiki mediawiki/
|
2024-11-08 19:07:28 -06:00
|
|
|
- buildah manifest push --all dev.ccchb.de/ccchb/oci-images/mediawiki oci-archive:/woodpecker/image.tar
|
|
|
|
privileged: true
|
|
|
|
- name: push
|
|
|
|
image: quay.io/skopeo/stable
|
|
|
|
commands:
|
|
|
|
- "skopeo copy --dest-creds ccchb:$${FORGEJO_API_TOKEN} oci-archive:/woodpecker/image.tar docker://dev.ccchb.de/ccchb/oci-images/mediawiki:$${CI_COMMIT_TAG##mediawiki/}"
|
|
|
|
- "skopeo copy --dest-creds ccchb:$${FORGEJO_API_TOKEN} oci-archive:/woodpecker/image.tar docker://dev.ccchb.de/ccchb/oci-images/mediawiki:latest"
|
2024-12-22 07:58:01 -06:00
|
|
|
environment:
|
|
|
|
FORGEJO_API_TOKEN:
|
|
|
|
from_secret: FORGEJO_API_TOKEN
|
2024-11-08 19:07:28 -06:00
|
|
|
when:
|
|
|
|
event: tag
|