Skip to content
Snippets Groups Projects
Commit 1d8463a4 authored by Surya Bahadur Kathayat's avatar Surya Bahadur Kathayat
Browse files

Update .gitlab-ci.yml

parent f3d0f83b
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,8 @@ before_script:
#- docker login -u "gitlab-ci-token" -p $CI_JOB_TOKEN registry.stud.idi.ntnu.no:5050
- 'command -v ssh-agent >/dev/null || ( apk add --update openssh )'
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
#- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- echo "${SSH_PRIVATE_KEY}" | ssh-add -
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- ssh-keyscan $VM_IPADDRESS >> ~/.ssh/known_hosts
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment