Finalize Woodpecker config

This commit is contained in:
lostinlight 2022-01-22 16:48:57 +03:00
parent 327a436435
commit 1d184e6516
1 changed files with 0 additions and 18 deletions

View File

@ -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: