Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
R3
howto-cards
Commits
4097f455
Verified
Commit
4097f455
authored
Jul 24, 2020
by
Laurent Heirendt
✈
Browse files
prepare index yml
parent
3b7f3a7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
4097f455
...
...
@@ -2,10 +2,29 @@
image
:
git-r3lab.uni.lu:4567/r3/docker/jekyll-lcsb:1.6
stages
:
-
prepare
-
build
-
generate
-
deploy
# prepare
# ------------------------------------------------------------------------------------
prepare:index:
image
:
python
stage
:
prepare
rules
:
-
if
:
$CI_COMMIT_BRANCH
-
if
:
$CI_MERGE_REQUEST_ID
script
:
-
python .ci/generateIndex.py
-
mkdir .tmp
-
cp index.md .tmp/.
artifacts
:
expire_in
:
1 day
paths
:
-
.tmp
# build
# ------------------------------------------------------------------------------------
...
...
@@ -36,6 +55,9 @@ build:pages:
# Display, which configuration is used
-
'
echo
"Configuration:
"
&&
cat
".ci/_config_$CI_COMMIT_REF_NAME.yml"'
# retrieve index from previous stage
-
cp .tmp/index.md .
# Run Jekyll with custom configuration
-
bundle exec jekyll build -d build --config "_config.yml,.ci/_config_$CI_COMMIT_REF_NAME.yml"
...
...
Write
Preview
Markdown
is supported
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