Verified Commit 1c463b8e authored by Yohan Jarosz's avatar Yohan Jarosz 🐶
Browse files

use rules

parent f942ca67
Pipeline #24585 failed
...@@ -2,6 +2,8 @@ stages: ...@@ -2,6 +2,8 @@ stages:
- build - build
- review - review
variables:
PRODUCTION_BRANCH: 'master'
Build for review: Build for review:
stage: build stage: build
...@@ -21,8 +23,8 @@ Build for review: ...@@ -21,8 +23,8 @@ Build for review:
- public - public
variables: variables:
JEKYLL_ENV: review JEKYLL_ENV: review
except: - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME'
- master when: always
tags: tags:
- review-app - review-app
...@@ -35,11 +37,10 @@ Publish review: ...@@ -35,11 +37,10 @@ Publish review:
stage: review stage: review
script: script:
- rsync -av --delete public /srv/nginx/pages/$CI_PROJECT_ID/$CI_MERGE_REQUEST_ID - rsync -av --delete public /srv/nginx/pages/$CI_PROJECT_ID/$CI_MERGE_REQUEST_ID
environment:
name: review $CI_BUILD_REF_NAME for $CI_PROJECT_PATH name: review $CI_BUILD_REF_NAME for $CI_PROJECT_PATH
url: http://$CI_MERGE_REQUEST_ID-$CI_PROJECT_ID.review.lcsb.uni.lu url: http://$CI_MERGE_REQUEST_ID-$CI_PROJECT_ID.review.lcsb.uni.lu
on_stop: "Un-publish review" on_stop: "Un-publish review"
except:
- master
tags: tags:
- review-app - review-app
...@@ -53,8 +54,6 @@ Un-publish review: ...@@ -53,8 +54,6 @@ Un-publish review:
environment: environment:
name: review $CI_BUILD_REF_NAME for $CI_PROJECT_PATH name: review $CI_BUILD_REF_NAME for $CI_PROJECT_PATH
action: stop action: stop
except:
- master
tags: tags:
- review-app - review-app
\ No newline at end of file
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