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
SCDL
Schéma Subventions
Commits
25ed2e53
Commit
25ed2e53
authored
Jun 05, 2019
by
Christophe Benz
Browse files
Update schema.md using CI
parent
1aef2b3f
Pipeline
#907
failed with stages
in 57 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
25ed2e53
variables
:
SCHEMA_JSON
:
schema.json
SCHEMA_MD
:
schema.md
build_schema_doc
:
stage
:
build
image
:
node:10
only
:
changes
:
-
$SCHEMA_JSON
variables
:
LC_ALL
:
fr_FR.utf8
before_script
:
-
npm install -g @opendataschema/table-schema-to-markdown
script
:
-
table-schema-to-markdown $SCHEMA_JSON > $SCHEMA_MD
artifacts
:
paths
:
-
$SCHEMA_MD
cache
:
paths
:
-
node_modules/
commit_schema_md
:
stage
:
deploy
image
:
git.opendatafrance.net:4567/scdl/documentation
only
:
changes
:
-
$SCHEMA_JSON
before_script
:
-
eval $(ssh-agent -s)
-
ssh-add <(echo "$SSH_PRIVATE_KEY")
-
mkdir -p ~/.ssh
-
ssh-keyscan -t rsa git.opendatafrance.net >> ~/.ssh/known_hosts
script
:
-
git clone --branch $CI_COMMIT_REF_NAME $CI_REPOSITORY_URL
-
mv $SCHEMA_MD $CI_PROJECT_NAME
-
cd $CI_PROJECT_NAME
-
git add $SCHEMA_MD
-
git commit -m "Update $SCHEMA_MD" ||
true
-
git push
\ No newline at end of file
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