From c9b68342ade69b11cc04ad562b70edfa04deaa2c Mon Sep 17 00:00:00 2001 From: idanoo Date: Mon, 12 Sep 2022 17:23:10 +1200 Subject: [PATCH] Fix key perms --- .woodpecker.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.woodpecker.yml b/.woodpecker.yml index 6356667..2d022a2 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -5,6 +5,7 @@ pipeline: - apk update - apk add openssh - echo $M2_DEPLOY_KEY > privkey + - chmod 0600 privkey - ssh -i privkey -o StrictHostKeyChecking=no 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 privkey secrets: [ m2_deploy_key, m2_host ]