Eine Config für Alles
This commit is contained in:
parent
0b1a4cdb1c
commit
b67472ac40
3 changed files with 5 additions and 64 deletions
.woodpecker
|
@ -1,26 +0,0 @@
|
||||||
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 mediawiki/
|
|
||||||
- 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"
|
|
||||||
environment:
|
|
||||||
FORGEJO_API_TOKEN:
|
|
||||||
from_secret: FORGEJO_API_TOKEN
|
|
||||||
when:
|
|
||||||
event: tag
|
|
|
@ -1,26 +1,19 @@
|
||||||
when:
|
when:
|
||||||
- event: push
|
|
||||||
branch: main
|
|
||||||
path:
|
|
||||||
- "keycloak/**"
|
|
||||||
- ".woodpecker/keycloak.yaml"
|
|
||||||
- event: tag
|
- event: tag
|
||||||
ref: "refs/tags/keycloak/*"
|
ref: "refs/tags/*"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: quay.io/buildah/stable
|
image: quay.io/buildah/stable
|
||||||
commands:
|
commands:
|
||||||
- buildah build --manifest dev.ccchb.de/ccchb/oci-images/keycloak keycloak/
|
- buildah build --manifest dev.ccchb.de/ccchb/oci-images/$${CI_COMMIT_TAG%/*} $${CI_COMMIT_TAG%/*}/
|
||||||
- buildah manifest push --all dev.ccchb.de/ccchb/oci-images/keycloak oci-archive:/woodpecker/image.tar
|
- buildah manifest push --all dev.ccchb.de/ccchb/oci-images/$${CI_COMMIT_TAG%/*} oci-archive:/woodpecker/image.tar
|
||||||
privileged: true
|
privileged: true
|
||||||
- name: push
|
- name: push
|
||||||
image: quay.io/skopeo/stable
|
image: quay.io/skopeo/stable
|
||||||
commands:
|
commands:
|
||||||
- "skopeo copy --dest-creds ccchb:$${FORGEJO_API_TOKEN} oci-archive:/woodpecker/image.tar docker://dev.ccchb.de/ccchb/oci-images/keycloak:$${CI_COMMIT_TAG##keycloak/}"
|
- "skopeo copy --dest-creds ccchb:$${FORGEJO_API_TOKEN} oci-archive:/woodpecker/image.tar docker://dev.ccchb.de/ccchb/oci-images/$${CI_COMMIT_TAG%/*}:$${CI_COMMIT_TAG##*/}"
|
||||||
- "skopeo copy --dest-creds ccchb:$${FORGEJO_API_TOKEN} oci-archive:/woodpecker/image.tar docker://dev.ccchb.de/ccchb/oci-images/keycloak:latest"
|
- "skopeo copy --dest-creds ccchb:$${FORGEJO_API_TOKEN} oci-archive:/woodpecker/image.tar docker://dev.ccchb.de/ccchb/oci-images/$${CI_COMMIT_TAG%/*}:latest"
|
||||||
environment:
|
environment:
|
||||||
FORGEJO_API_TOKEN:
|
FORGEJO_API_TOKEN:
|
||||||
from_secret: FORGEJO_API_TOKEN
|
from_secret: FORGEJO_API_TOKEN
|
||||||
when:
|
|
||||||
event: tag
|
|
|
@ -1,26 +0,0 @@
|
||||||
when:
|
|
||||||
- event: push
|
|
||||||
branch: main
|
|
||||||
path:
|
|
||||||
- "strichliste/**"
|
|
||||||
- ".woodpecker/strichliste.yaml"
|
|
||||||
- event: tag
|
|
||||||
ref: "refs/tags/strichliste/*"
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: build
|
|
||||||
image: quay.io/buildah/stable
|
|
||||||
commands:
|
|
||||||
- buildah build --manifest dev.ccchb.de/ccchb/oci-images/strichliste strichliste/
|
|
||||||
- buildah manifest push --all dev.ccchb.de/ccchb/oci-images/strichliste 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/strichliste:$${CI_COMMIT_TAG##strichliste/}"
|
|
||||||
- "skopeo copy --dest-creds ccchb:$${FORGEJO_API_TOKEN} oci-archive:/woodpecker/image.tar docker://dev.ccchb.de/ccchb/oci-images/strichliste:latest"
|
|
||||||
environment:
|
|
||||||
FORGEJO_API_TOKEN:
|
|
||||||
from_secret: FORGEJO_API_TOKEN
|
|
||||||
when:
|
|
||||||
event: tag
|
|
Loading…
Reference in a new issue