Fix Woodpecker config (10)

This commit is contained in:
lostinlight 2022-01-22 13:17:06 +03:00
parent 563fe75f05
commit a1cf7d33e4
1 changed files with 2 additions and 7 deletions

View File

@ -20,19 +20,14 @@ pipeline:
publish:
image: alpine
secrets: [ ssh_key ]
secrets: [ access_token ]
commands:
- apk add git openssh
# configure git
- git checkout -b pages
- git config --global user.email "nonexistent@example.com"
- git config --global user.name "Codeberg CI"
- git remote set-url origin git@codeberg.org:fediverse/fediparty.git
- mkdir ~/.ssh
- echo $SSH_KEY > ~/.ssh/id_ed25519
- sha256sum ~/.ssh/id_ed25519
- wc -c ~/.ssh/id_ed25519
- ssh -vvv git@codeberg.org
- git remote set-url origin https://"$${ACCESS_TOKEN}"@codeberg.org/fediverse/fediparty.git
# deploy changes
- git add -A
- git commit -m "Woodpecker build ${CI_COMMIT_SHA}"