diff --git a/.woodpecker.yml b/.woodpecker.yml index 62abda8..b96f738 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -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