Fix Woodpecker config (20)

This commit is contained in:
lostinlight 2022-01-22 16:06:57 +03:00
parent b631bb1e66
commit b301a1ad60

View file

@ -1,5 +1,18 @@
pipeline: 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 step: generates the files for Hexo site
build: build:
image: node:12.22.1 image: node:12.22.1