Commit 1eb394ee authored by Cool Fire's avatar Cool Fire
Browse files

Completely textbook

parent 5a810ef5
......@@ -29,11 +29,10 @@ deploy:
script:
- 'which ssh-agent || (apt-get install -y -qq openssh-client)'
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY")
- mkdir -p ~/.ssh
- echo -ne "$SSH_PRIVATE_KEY\n" > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- ssh -vvv -i ~/.ssh/id_rsa puppet.insomnia247.nl "cd /etc/puppetlabs/code/environments/production && git pull"
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- ssh puppet.insomnia247.nl "cd /etc/puppetlabs/code/environments/production && git pull"
tags:
- puppet
only:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment