Fix Woodpecker config (20)

This commit is contained in:
lostinlight 2022-01-22 16:06:57 +03:00
parent b631bb1e66
commit b301a1ad60
1 changed files with 13 additions and 0 deletions

View File

@ -1,5 +1,18 @@
pipeline:
key_check:
image: alpine
secrets: [ ssh_key ]
commands:
- apk add openssh
- printf '%s\n' "$${SSH_KEY}" > key
- chmod 600 key
- ssh-keygen -l -f key
when:
branch:
include: [ main ]
event: [push, deployment]
# Build step: generates the files for Hexo site
build:
image: node:12.22.1