From 1b9c831d4e43338e0a8f5cb5f7bdd8b65a2148f5 Mon Sep 17 00:00:00 2001 From: Fritz Grimpen Date: Sun, 22 Dec 2024 14:58:01 +0100 Subject: [PATCH] CI: Convert to new secret syntax of Woodpecker CI --- .woodpecker/keycloak.yaml | 5 +++-- .woodpecker/mediawiki.yaml | 5 +++-- .woodpecker/strichliste.yaml | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.woodpecker/keycloak.yaml b/.woodpecker/keycloak.yaml index 721ee88..2d879fc 100644 --- a/.woodpecker/keycloak.yaml +++ b/.woodpecker/keycloak.yaml @@ -19,7 +19,8 @@ steps: 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/keycloak:latest" - secrets: - - FORGEJO_API_TOKEN + environment: + FORGEJO_API_TOKEN: + from_secret: FORGEJO_API_TOKEN when: event: tag diff --git a/.woodpecker/mediawiki.yaml b/.woodpecker/mediawiki.yaml index 5f0e516..3841329 100644 --- a/.woodpecker/mediawiki.yaml +++ b/.woodpecker/mediawiki.yaml @@ -19,7 +19,8 @@ steps: 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 + environment: + FORGEJO_API_TOKEN: + from_secret: FORGEJO_API_TOKEN when: event: tag diff --git a/.woodpecker/strichliste.yaml b/.woodpecker/strichliste.yaml index e8711e8..26ddb7a 100644 --- a/.woodpecker/strichliste.yaml +++ b/.woodpecker/strichliste.yaml @@ -19,7 +19,8 @@ steps: 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" - secrets: - - FORGEJO_API_TOKEN + environment: + FORGEJO_API_TOKEN: + from_secret: FORGEJO_API_TOKEN when: event: tag