Update .gitlab-ci.yml

This commit is contained in:
Daniel Løvbrøtte Olsen 2019-05-23 18:50:26 +00:00
parent 64e01c0827
commit 450552af18
1 changed files with 2 additions and 0 deletions

View File

@ -22,5 +22,7 @@ deploy:
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- chmod 700 ~/.ssh - chmod 700 ~/.ssh
- echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
- ssh "$SERVER_HOST" ls - ssh "$SERVER_HOST" ls