Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Yohan Jarosz
Testappreview
Commits
345ae940
Verified
Commit
345ae940
authored
Mar 12, 2020
by
Yohan Jarosz
🐶
Browse files
add ci
parents
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yaml
0 → 100644
View file @
345ae940
Build for review
:
stage
:
build
before_script
:
-
bundle install --path ~/.gem && bundle update
script
:
-
'
echo
"project_id:
$CI_PROJECT_ID"
>
_config_review.yml'
-
'
echo
"project_namespace:
$CI_PROJECT_PATH"
>>
_config_review.yml'
-
'
echo
"mr_id:
$CI_MERGE_REQUEST_ID"
>>
_config_review.yml'
-
'
echo
"gitlab_host:
https://git-r3lab.uni.lu"
>>
_config_review.yml'
-
bundle exec jekyll build -d public --config "_config.yml,_config_review.yml"
artifacts
:
expire_in
:
1 month
paths
:
-
public
variables
:
JEKYLL_ENV
:
review
only
:
-
branches@$CI_PROJECT_PATH.pages.uni.lu
except
:
-
master
tags
:
-
review-app
Publish review
:
stage
:
review
script
:
-
rsync -av --delete public /srv/nginx/pages/$CI_PROJECT_NAMESPACE/$CI_BUILD_REF_SLUG
environment
:
name
:
review $CI_BUILD_REF_NAME for $CI_PROJECT_NAMESPACE
url
:
http://CI_BUILD_REF_SLUG-$CI_PROJECT_NAMESPACE.review.lcsb.uni.lu
on_stop
:
"
Un-publish
review"
only
:
-
branches@$CI_PROJECT_PATH.pages.uni.lu
except
:
-
master
tags
:
-
review-app
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment