before script

This commit is contained in:
s0dy 2018-11-17 14:40:04 +01:00
parent 5c709764fc
commit c80f46ffff

View File

@ -1,8 +1,11 @@
image: geerlingguy/docker-debian9-ansible:latest
before_script:
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
deploy_to_webserver:
stage: deploy