Verified Commit ec9522d0 authored by Laurent Heirendt's avatar Laurent Heirendt
Browse files

make sure index is generated before website is built

parent 1cea4b3d
stages:
- retrieve
- generate
- build
- deploy
......@@ -15,16 +16,20 @@ retrieve:repo:
paths:
- courses.lcsb.uni.lu
build:index:
generate:index:
image: python
stage: build
stage: generate
rules:
- if: $CI_COMMIT_BRANCH == "develop"
script:
- python .ci/generateIndex.py
artifacts:
expire_in: 1 day
paths:
- courses.lcsb.uni.lu
build:website:
image: git-r3lab.uni.lu:4567/r3/docker/jekyll-lcsb:1.6
image: git-r3lab.uni.lu:4567/r3/docker/jekyll-lcsb
stage: build
before_script:
- cd courses.lcsb.uni.lu
......@@ -59,7 +64,7 @@ build:courses:
upload:
stage: deploy
image: alpine:3.1
image: alpine
before_script:
- 'which ssh-agent || ( apk add --update openssh )'
- eval $(ssh-agent -s)
......
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