From 41ff94fe8f5a0b32fe09b39bdcf542428984d79c Mon Sep 17 00:00:00 2001 From: idanoo Date: Mon, 12 Sep 2022 17:07:49 +1200 Subject: [PATCH] Test deploy --- .woodpecker.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index daac588..412a872 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -8,4 +8,15 @@ pipeline: - wget https://github.com/gohugoio/hugo/releases/download/v$${HUGO_VERSION}/hugo_extended_$${HUGO_VERSION}_Linux-64bit.deb - dpkg -i hugo_extended_$${HUGO_VERSION}_Linux-64bit.deb - hugo - - ls \ No newline at end of file + - ls + + deploy: + image: golang + environment: + - HUGO_VERSION=0.102.3 + commands: + - echo $M2_DEPLOY_KEY > privkey + - scp -i privkey -r public $M2_DEPLOY_STRING + - ssh -i privkey $M2_DEPLOY_STRING 'sudo systemctl reload nginx.service' + - rm -fr privkey + secrets: [ m2_deploy_secret, m2_deploy_string ] \ No newline at end of file