Update .gitlab-ci.yml

This commit is contained in:
Daniel Løvbrøtte Olsen 2019-05-23 18:36:46 +00:00
parent 11335d0955
commit 774e8e9681
1 changed files with 7 additions and 1 deletions

View File

@ -17,4 +17,10 @@ build:
deploy:
stage: deploy
script:
- ls out
- '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
- ssh "$SERVER_HOST" ls