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

fix rules

parent ec9522d0
No related branches found
No related tags found
No related merge requests found
Pipeline #29314 passed
...@@ -15,12 +15,16 @@ retrieve:repo: ...@@ -15,12 +15,16 @@ retrieve:repo:
expire_in: 1 day expire_in: 1 day
paths: paths:
- courses.lcsb.uni.lu - courses.lcsb.uni.lu
rules:
- if: $CI_COMMIT_BRANCH == "develop"
- if: $CI_COMMIT_BRANCH == "master"
generate:index: generate:index:
image: python image: python
stage: generate stage: generate
rules: rules:
- if: $CI_COMMIT_BRANCH == "develop" - if: $CI_COMMIT_BRANCH == "develop"
- if: $CI_COMMIT_BRANCH == "master"
script: script:
- python .ci/generateIndex.py - python .ci/generateIndex.py
artifacts: artifacts:
...@@ -31,6 +35,9 @@ generate:index: ...@@ -31,6 +35,9 @@ generate:index:
build:website: build:website:
image: git-r3lab.uni.lu:4567/r3/docker/jekyll-lcsb image: git-r3lab.uni.lu:4567/r3/docker/jekyll-lcsb
stage: build stage: build
rules:
- if: $CI_COMMIT_BRANCH == "develop"
- if: $CI_COMMIT_BRANCH == "master"
before_script: before_script:
- cd courses.lcsb.uni.lu - cd courses.lcsb.uni.lu
- gem install bundler -v2.0.2 - gem install bundler -v2.0.2
...@@ -53,6 +60,7 @@ build:courses: ...@@ -53,6 +60,7 @@ build:courses:
stage: build stage: build
rules: rules:
- if: $CI_COMMIT_BRANCH == "develop" - if: $CI_COMMIT_BRANCH == "develop"
- if: $CI_COMMIT_BRANCH == "master"
before_script: before_script:
- git submodule update --recursive --init - git submodule update --recursive --init
script: script:
...@@ -74,7 +82,8 @@ upload: ...@@ -74,7 +82,8 @@ upload:
- echo "$KNOWNHOSTS" > ~/.ssh/known_hosts - echo "$KNOWNHOSTS" > ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts - chmod 644 ~/.ssh/known_hosts
rules: rules:
- if: '$CI_COMMIT_BRANCH == "develop"' - if: $CI_COMMIT_BRANCH == "develop"
- if: $CI_COMMIT_BRANCH == "master"
script: script:
- scp -P $SSHPORT -r site/* $SSHCONNECT:~/web/latest - scp -P $SSHPORT -r site/* $SSHCONNECT:~/web/latest
- scp -P $SSHPORT -r public/* $SSHCONNECT:~/web/latest - scp -P $SSHPORT -r public/* $SSHCONNECT:~/web/latest
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