Commit 28683c4e authored by Christophe Picard's avatar Christophe Picard
Browse files

Update .gitlab-ci.yml

parent b65f2f1f
Pipeline #58977 failed with stage
in 1 minute and 35 seconds
......@@ -9,17 +9,22 @@
# only:
# - master
image: gitlab/dind:latest
variables:
GIT_SUBMODULE_STRATEGY: recursive
COMPOSE: docker-compose
before_script:
# - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
# - 'which rsync || ( apt-get update -y && apt-get install rsync -y )'
# - eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY_DEV")
- ssh-add <(echo "$SSH_PRIVATE_KEY_PROD")
- mkdir -p ~/.ssh
- '[[ -f /.dockerenv ]] && echo "$SSH_HOSTKEYS" > ~/.ssh/known_hosts'
# Install ssh-agent if not already installed, it is required by Docker.
# (change apt-get to yum if you use a CentOS-based image)
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
# Run ssh-agent (inside the build environment)
- eval $(ssh-agent -s)
# Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store
- ssh-add <(echo "$SSH_PRIVATE_KEY")
pages:
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