Skip to content

Commit 1be4783

Browse files
authored
Update codeberg pages deployment guide to use from_secret (#2784)
secrets was deprecated in Woodpecker 3.0 in favor of from_secret. So, documentation is updated as without changes, CI will fail.
1 parent 233d1b8 commit 1be4783

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/content/documentation/deployment/codeberg-pages.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,17 @@ steps:
5656

5757
publish:
5858
image: bitnami/git
59-
secrets: [mail, codeberg_token]
59+
environment:
60+
CBMAIL:
61+
from_secret: "mail"
62+
CBTOKEN:
63+
from_secret: "codeberg_token"
6064
commands:
6165
# Configure Git
62-
- git config --global user.email $MAIL
66+
- git config --global user.email "$${CBMAIL}"
6367
- git config --global user.name "Woodpecker CI"
6468
# Clone the output branch
65-
- git clone --branch pages https://$CODEBERG_TOKEN@codeberg.org/$CI_REPO.git $CI_REPO_NAME
69+
- git clone --branch pages https://$${CBTOKEN}@codeberg.org/$CI_REPO.git $CI_REPO_NAME
6670
# Enter the output branch
6771
- cd $CI_REPO_NAME
6872
# Remove old files

0 commit comments

Comments
 (0)