From bcc8828dfa46b9ec8b6347782f76c13cb85a349b Mon Sep 17 00:00:00 2001 From: idanoo Date: Mon, 12 Sep 2022 17:20:16 +1200 Subject: [PATCH] Add open ssh --- .woodpecker.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 7be7065..e698d7b 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -4,10 +4,7 @@ pipeline: commands: - apk update - apk add openssh - - ssh-keygen -R $M2_HOST - echo $M2_DEPLOY_KEY > /root/.ssh/privkey - ssh -i /root/.ssh/privkey root@M2_HOST 'cd /var/www/m2.nz && git pull && chown www-data:users -R /var/www/m2.nz && sudo systemctl reload nginx.service' - rm -fr /root/.ssh/privkey secrets: [ m2_deploy_key, m2_host ] - - \ No newline at end of file