chore(gitlab-ci): manually handle ssh key

This commit is contained in:
Gregor Kleen 2019-11-13 17:02:52 +01:00
parent 22163c8fdb
commit f8c462fd03

View File

@ -216,7 +216,7 @@ yesod:test:
deploy:uniworx4:
stage: deploy
script:
- ssh root@uniworx4.ifi.lmu.de <bin/uniworx
- ssh -i .ssh/id root@uniworx4.ifi.lmu.de <bin/uniworx
needs:
- yesod:build
- yesod:test # For sanity
@ -228,8 +228,6 @@ deploy:uniworx4:
- chmod 700 ~/.ssh
- install -m 0644 ${SSH_KNOWN_HOSTS} ~/.ssh/known_hosts
- install -m 0400 ${SSH_PRIVATE_KEY_UNIWORX4} ~/.ssh/id
- eval $(ssh-agent -s)
- ssh-add ~/.ssh/id
dependencies:
- yesod:build