Add ssh key to travis

This commit is contained in:
Matthias Larisch 2017-12-23 23:23:34 +01:00
parent 434e89888a
commit dbc7093796
2 changed files with 5 additions and 0 deletions

View file

@ -22,4 +22,9 @@ install:
- if [ "$ANSIBLE_VERSION" = "latest" ]; then pip install ansible-lint; fi
script:
- eval "$(ssh-agent -s)" #start the ssh agent
- openssl aes-256-cbc -K $encrypted_ac3b881c48a4_key -iv $encrypted_ac3b881c48a4_iv -in deploy-user.enc -out deploy-user -d
- chmod 600 deploy-user # this key should have push access
- ssh-add deploy-user
- export ANSIBLE_HOST_KEY_CHECKING=False
- ansible-playbook -i ansible/inventory ansible/playbooks/kanthaus-online/deploy.playbook.yml -v

BIN
deploy-user.enc Normal file

Binary file not shown.