Update CI config (fixes secrets handling)

This fixes new constraints that codeberg's woodpecker CI enforces
This commit is contained in:
Heiko Schaefer 2025-10-01 12:41:00 +02:00
parent ee3f4a439d
commit 3ec4661835
No known key found for this signature in database
GPG key ID: DAE9A9050FCCF1EB

View file

@ -3,7 +3,7 @@
steps: steps:
pages: pages:
image: woodpeckerci/plugin-docker-buildx image: woodpeckerci/plugin-docker-buildx:6.0.2
settings: settings:
output: type=local,dest=public output: type=local,dest=public
# do not push, push cannot be used with output simultaneously anyway # do not push, push cannot be used with output simultaneously anyway
@ -11,10 +11,14 @@ steps:
# do not refresh image # do not refresh image
pull_image: false pull_image: false
purge: false purge: false
when:
event: push
pages-pr-preview: pages-pr-preview:
image: bitnami/git image: bitnami/git
secrets: [ codeberg_token ] environment:
CODEBERG_TOKEN:
from_secret: codeberg_token
commands: commands:
- git config --global user.email heiko.schaefer+boiler@posteo.de - git config --global user.email heiko.schaefer+boiler@posteo.de
- git config --global user.name "Page Renderer" - git config --global user.name "Page Renderer"
@ -35,7 +39,9 @@ steps:
pages-publish: pages-publish:
image: bitnami/git image: bitnami/git
secrets: [ codeberg_token ] environment:
CODEBERG_TOKEN:
from_secret: codeberg_token
commands: commands:
- git config --global user.email heiko.schaefer+boiler@posteo.de - git config --global user.email heiko.schaefer+boiler@posteo.de
- git config --global user.name "Page Renderer" - git config --global user.name "Page Renderer"