steps: init_ssh: image: machines/local commands: - mkdir -p ~/.ssh - echo "$PRIVKEY" > ~/.ssh/id_rsa - chmod 700 ~/.ssh && chmod 600 ~/.ssh/id_rsa secrets: [ privkey ] update: image: machines/local commands: - ssh websiteupdate@172.17.0.1 -i ~/.ssh/id_rsa "cd /websiteupdate/website && git reset --hard origin/master && git config pull.rebase true && git pull"