Skip to content
Snippets Groups Projects
Commit 918b2457 authored by Jan Caron's avatar Jan Caron
Browse files

Disable Host key checking to try to get jutil deploy key to work.

parent 1921dd84
No related branches found
No related tags found
No related merge requests found
image: "python:3.5"
before_script:
# Check and print Python version
- python --version
- pip install hyperspy tqdm cmocean nose
- eval $(ssh-agent -s) # Run ssh-agent
- ssh-add <(echo "$SSH_KEY_JUTIL") # Add SSH key for jutil to the agent store
####- pip install hyperspy tqdm cmocean nose
# Run ssh-agent, "-s" forces generation of Bourne shell (/bin/sh) commands on stdout:
- eval $(ssh-agent -s)
# Add SSH key for jutil to the agent store:
- ssh-add <(echo "$SSH_KEY_JUTIL")
# 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'
- echo "Done"
stages:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment