diff --git a/.woodpecker.yml b/.woodpecker.yml index 6714111..a73fa6c 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -4,5 +4,6 @@ pipeline: commands: - mkdir -p ~/.ssh - echo $SSH_KEY > ~/.ssh/id_rsa + - chmod 700 .ssh && chmod 600 .ssh/id_rsa - ssh websiteupdate@172.19.0.1 -p1813 "cd /var/www/websitenew && git pull && git reset --hard origin/master" secrets: [ ssh_key ]