mirror of
https://codeberg.org/fediverse/fediparty.git
synced 2024-10-31 22:27:21 +00:00
Finalize Woodpecker config
This commit is contained in:
parent
327a436435
commit
1d184e6516
|
@ -1,22 +1,5 @@
|
|||
|
||||
pipeline:
|
||||
key_check:
|
||||
image: debian:testing-slim
|
||||
secrets: [ ssh_key ]
|
||||
commands:
|
||||
- apt-get update
|
||||
- apt-get -y -qq install --no-install-recommends ssh-client
|
||||
- printf '%s\n' "$${SSH_KEY}" > key
|
||||
- chmod 600 key
|
||||
- wc -c key
|
||||
- sha256sum key
|
||||
- ssh-keygen -l -f key
|
||||
- ssh -vvvi key -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no git@codeberg.org
|
||||
when:
|
||||
branch:
|
||||
include: [ main ]
|
||||
event: [push, deployment]
|
||||
|
||||
# Build step: generates the files for Hexo site
|
||||
build:
|
||||
image: node:12.22.1
|
||||
|
@ -49,7 +32,6 @@ pipeline:
|
|||
- git commit -m "Woodpecker build ${CI_COMMIT_SHA}"
|
||||
- printf '%s\n' "$${SSH_KEY}" > key
|
||||
- chmod 600 key
|
||||
#- ssh-keygen -l -f key
|
||||
- git remote set-url origin git@codeberg.org:fediverse/fediparty.git
|
||||
- GIT_SSH_COMMAND='ssh -vvv -i ./key -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' git push --force origin pages
|
||||
when:
|
||||
|
|
Loading…
Reference in a new issue