Update .gitlab-ci.yml

This commit is contained in:
Daniel Løvbrøtte Olsen 2019-05-23 18:38:04 +00:00
parent 774e8e9681
commit 64e01c0827
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ build:
deploy: deploy:
stage: deploy stage: deploy
script: script:
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' - 'which ssh-agent || ( apk add --no-cache zip openssh-client )'
- eval $(ssh-agent -s) - eval $(ssh-agent -s)
- 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