diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 171dbf96cb272bc4a7778e97926a8bb9f689e1a1..b79fa602866416318c87c9ee444b4edf87d2e5e1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,8 +1,18 @@ before_script: + + # Init ssh - eval $(ssh-agent -s) - ssh-add <(echo "$SSH_PRIVATE_KEY") - ssh-add -L - curl -sL https://deb.nodesource.com/setup_4.x | bash - + + # For Docker builds disable host key checking. Be aware that by adding that + # you are suspectible to man-in-the-middle attacks. + # WARNING: Use this only with the Docker executor, if you use it with shell + # you will overwrite your user's SSH config. + - mkdir -p ~/.ssh + - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' + - apt-get update -qq && apt-get install -y nodejs && npm install test: script: