Add CI job for MediaWiki
This commit is contained in:
parent
321e15b180
commit
ea5d2b5f17
1 changed files with 25 additions and 0 deletions
25
.woodpecker/mediawiki.yaml
Normal file
25
.woodpecker/mediawiki.yaml
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
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:
|
||||||
|
- buildah build --manifest dev.ccchb.de/ccchb/oci-images/mediawiki keycloak/
|
||||||
|
- 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"
|
||||||
|
secrets:
|
||||||
|
- FORGEJO_API_TOKEN
|
||||||
|
when:
|
||||||
|
event: tag
|
Loading…
Reference in a new issue