Skip to content
Snippets Groups Projects
Commit 74a4e898 authored by Sven Marcus's avatar Sven Marcus
Browse files

Uses SSH_PRIVATE_KEY in .gitlab-ci

parent 9f83165d
No related branches found
No related tags found
No related merge requests found
......@@ -73,13 +73,11 @@ deploy_to_phoenix:
needs: ["build"]
before_script:
- eval "$(ssh-agent -s)"
- ssh-add $SSH_PRIVATE_KEY
- pip3 install ansible
script:
- ls -l /root/.ssh
- chmod 600 /root/.ssh/config
- chown root /root/.ssh/config
- ls -l /root/.ssh
- ansible-playbook -i ansible/hosts.cfg ansible/playbook.yml -u $REMOTE_USER
parallel:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment