Add localhost key to knwon_hosts

This commit is contained in:
Tim Schubert 2018-05-17 17:03:20 +02:00
parent af90bab029
commit 602ce576dd

View file

@ -15,6 +15,8 @@ before_script:
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- chmod 700 ~/.ssh - chmod 700 ~/.ssh
- ssh-add -l - ssh-add -l
- ssh-keyscan localhost >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
## get API token from secret variable ## get API token from secret variable
- cp python-gitlab.cfg $HOME/.python-gitlab.cfg - cp python-gitlab.cfg $HOME/.python-gitlab.cfg
- echo "private_token = ${PRIVATE_API_TOKEN}" >> $HOME/.python-gitlab.cfg - echo "private_token = ${PRIVATE_API_TOKEN}" >> $HOME/.python-gitlab.cfg