Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Validata
Validata Badge
Commits
dfea8403
Commit
dfea8403
authored
Mar 28, 2019
by
Christophe Benz
Browse files
wip
parent
06fd31eb
Pipeline
#686
canceled with stages
in 51 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
dfea8403
.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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment