From b301a1ad60e5684a1a1f424716d49051921a455c Mon Sep 17 00:00:00 2001 From: lostinlight Date: Sat, 22 Jan 2022 16:06:57 +0300 Subject: [PATCH] Fix Woodpecker config (20) --- .woodpecker.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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