Skip to content
Snippets Groups Projects
Verified Commit ec9522d0 authored by Laurent Heirendt's avatar Laurent Heirendt :airplane:
Browse files

make sure index is generated before website is built

parent 1cea4b3d
No related branches found
No related tags found
1 merge request!80Regular merge of develop
Pipeline #29311 passed
stages: stages:
- retrieve - retrieve
- generate
- build - build
- deploy - deploy
...@@ -15,16 +16,20 @@ retrieve:repo: ...@@ -15,16 +16,20 @@ retrieve:repo:
paths: paths:
- courses.lcsb.uni.lu - courses.lcsb.uni.lu
build:index: generate:index:
image: python image: python
stage: build stage: generate
rules: rules:
- if: $CI_COMMIT_BRANCH == "develop" - if: $CI_COMMIT_BRANCH == "develop"
script: script:
- python .ci/generateIndex.py - python .ci/generateIndex.py
artifacts:
expire_in: 1 day
paths:
- courses.lcsb.uni.lu
build:website: 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 stage: build
before_script: before_script:
- cd courses.lcsb.uni.lu - cd courses.lcsb.uni.lu
...@@ -59,7 +64,7 @@ build:courses: ...@@ -59,7 +64,7 @@ build:courses:
upload: upload:
stage: deploy stage: deploy
image: alpine:3.1 image: alpine
before_script: before_script:
- 'which ssh-agent || ( apk add --update openssh )' - 'which ssh-agent || ( apk add --update openssh )'
- eval $(ssh-agent -s) - eval $(ssh-agent -s)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment