Commit 33258cc5 authored by Théo GUILLON's avatar Théo GUILLON

Update .gitlab-ci.yml

parent c958a4f3
......@@ -6,6 +6,19 @@ deploy_ftp:
TARBALL_NAME: web-dpo-${CI_COMMIT_REF_NAME}.tar.gz
before_script:
# Install ssh-agent if not already installed
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
# Run ssh-agent
- eval $(ssh-agent -s)
# Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store
- ssh-add <(echo "$RESSOURCE_LIBRICIEL_SSH_KEY")
# Create the SSH directory and give it the right permissions
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
# Disable strict host key checking
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- cat /etc/issue
- apt-get update && apt-get dist-upgrade -y -q
- apt-get install -y openssh-client lftp curl git
......
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