Verified Commit 4097f455 authored by Laurent Heirendt's avatar Laurent Heirendt
Browse files

prepare index yml

parent 3b7f3a7d
......@@ -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"
......
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