mirror of
https://codeberg.org/fediverse/fediparty.git
synced 2025-01-10 09:59:51 +00:00
Fix Woodpecker config (17)
This commit is contained in:
parent
3bba7696cd
commit
e1a5abb202
|
@ -20,8 +20,9 @@ pipeline:
|
||||||
|
|
||||||
commit:
|
commit:
|
||||||
image: alpine
|
image: alpine
|
||||||
|
secrets: [ ssh_key ]
|
||||||
commands:
|
commands:
|
||||||
- apk add git
|
- apk add git openssh
|
||||||
# configure git
|
# configure git
|
||||||
- git config --global user.email "nonexistent@example.com"
|
- git config --global user.email "nonexistent@example.com"
|
||||||
- git config --global user.name "Codeberg CI"
|
- git config --global user.name "Codeberg CI"
|
||||||
|
@ -29,25 +30,14 @@ pipeline:
|
||||||
# deploy changes
|
# deploy changes
|
||||||
- git add -A
|
- git add -A
|
||||||
- git commit -m "Woodpecker build ${CI_COMMIT_SHA}"
|
- git commit -m "Woodpecker build ${CI_COMMIT_SHA}"
|
||||||
|
- printf '%s\n' "$${SSH_KEY}" > ./key
|
||||||
# Push step: it pushes the build output to "pages" branch
|
- chmod 600 ./key
|
||||||
push:
|
- ssh-keygen -l -f ./key
|
||||||
image: appleboy/drone-git-push
|
- git remote set-url origin git@codeberg.org:fediverse/fediparty.git
|
||||||
secrets:
|
- GIT_SSH_COMMAND='ssh -vvv -i .././key -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' git push --force origin pages
|
||||||
- source: ssh_key
|
|
||||||
target: plugin_ssh_key
|
|
||||||
settings:
|
|
||||||
branch: pages
|
|
||||||
remote: git@codeberg.org:fediverse/fediparty.git
|
|
||||||
# To work around "rejected...fetch first" error
|
|
||||||
force: true
|
|
||||||
when:
|
when:
|
||||||
# Only try to commit if previous step is successful
|
# Only try to commit if previous step is successful
|
||||||
status: success
|
status: success
|
||||||
branch:
|
branch:
|
||||||
# Only run on these branches
|
|
||||||
include: [ main ]
|
include: [ main ]
|
||||||
# ...and never on pages branch (to ignore build triggered by CI commits)
|
event: [push, deployment]
|
||||||
exclude: pages
|
|
||||||
# Execute on every event except "pull_request"
|
|
||||||
event: [push, tag, deployment]
|
|
||||||
|
|
Loading…
Reference in a new issue