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

modify used variables in URL

parent dab99d1a
Pipeline #24578 failed
stages: stages:
- build - build
- review - review
Build for review: Build for review:
stage: build stage: build
before_script: before_script:
...@@ -24,14 +25,18 @@ Build for review: ...@@ -24,14 +25,18 @@ Build for review:
- master - master
tags: tags:
- review-app - review-app
Publish review: Publish review:
stage: review stage: review
script: script:
- rsync -av --delete public /srv/nginx/pages/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/$CI_BUILD_REF_SLUG - 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_BUILD_REF_SLUG-$CI_PROJECT_NAME-$CI_PROJECT_NAMESPACE.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: except:
- master - master
...@@ -41,7 +46,7 @@ Publish review: ...@@ -41,7 +46,7 @@ Publish review:
Un-publish review: Un-publish review:
stage: review stage: review
script: script:
- rm -rf /srv/nginx/pages/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/$CI_BUILD_REF_SLUG - rm -rf /srv/nginx/pages/$CI_PROJECT_ID/$CI_MERGE_REQUEST_ID
variables: variables:
GIT_STRATEGY: none GIT_STRATEGY: none
when: manual when: manual
...@@ -51,5 +56,5 @@ Un-publish review: ...@@ -51,5 +56,5 @@ Un-publish review:
except: except:
- master - master
tags: tags:
- fp-review - review-app
\ No newline at end of file
# App-review setup with Jekyll
\ No newline at end of file
...@@ -5,8 +5,7 @@ order: 1 ...@@ -5,8 +5,7 @@ order: 1
--- ---
# App review test index # App review test index
This is a App review index in development. This is a App review index. For more information on how to setup app review for your project, please look at the README.md
### Other problems? ### Other problems?
......
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