Commit dfea8403 authored by Christophe Benz's avatar Christophe Benz
Browse files

wip

parent 06fd31eb
Pipeline #686 canceled with stages
in 51 seconds
.ssh_agent_template: &ssh_agent_template
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | ssh-add -
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
validate_conf:
image: python:3
stage: test
......@@ -17,9 +11,11 @@ deploy_conf:
stage: deploy
# only:
# - master
variables:
SSH_PRIVATE_KEY: $SSH_PRIVATE_KEY_VALIDATA_SERVER
before_script: *ssh_agent_template
before_script:
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY_VALIDATA_SERVER" | ssh-add -
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
script:
- ssh validata@go.validata.fr "sudo systemctl restart uwsgi.service"
environment:
......@@ -42,11 +38,14 @@ deploy_doc:
stage: deploy
# only:
# - master
variables:
SSH_PRIVATE_KEY: $SSH_PRIVATE_KEY_VALIDATA_DOC_REPO
before_script_1: *ssh_agent_template
before_script_2:
before_script:
# Install packages
- apk install git
# Load SSH agent
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY_VALIDATA_DOC_REPO" | ssh-add -
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
script:
- git clone git@git.opendatafrance.net:validata/validata-doc.git
- cp badge.md validata-doc/docs
......
Supports Markdown
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