Commit 9171a6f4 authored by Nicolas Biri's avatar Nicolas Biri

Disable host-key checking in gitlab-ci

parent 7bdf3d2b
Pipeline #691 passed with stage
in 52 seconds
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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment