Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axilleas@axilleas.me>2016-10-31 23:46:47 +0300
committerAchilleas Pipinellis <axilleas@axilleas.me>2016-10-31 23:46:47 +0300
commit9c3b1b03d4791889541f2d8815836f587b8d5935 (patch)
treeefdeaeed292ac7b4257cfe246819e2e2e35309e1 /.gitlab-ci.yml
parent428485f12d0b3c5a65edc6862e6b91fe54feb25f (diff)
Introduce Review Apps
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml34
1 files changed, 34 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 294e47b9..6330e977 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -19,6 +19,10 @@ verify_compile:
script:
- rake pull_repos
- nanoc
+ artifacts:
+ paths:
+ - public
+ expire_in: 1h
except:
- master
@@ -27,6 +31,36 @@ scss_lint:
script:
- bundle exec scss-lint
+review:
+ stage: deploy
+ variables:
+ APPS_DOMAIN: "178.62.207.141.xip.io"
+ script:
+ - rsync -av --delete public /srv/nginx/pages/$CI_BUILD_REF_NAME
+ environment:
+ name: review/$CI_BUILD_REF_NAME
+ url: http://$CI_BUILD_REF_NAME.$APPS_DOMAIN
+ on_stop: review_stop
+ only:
+ - branches
+ except:
+ - master
+ tags:
+ - nginx
+ - review-apps
+
+review_stop:
+ stage: deploy
+ script:
+ - rm -rf public /srv/nginx/pages/$CI_BUILD_REF_NAME
+ when: manual
+ environment:
+ name: review/$CI_BUILD_REF_NAME
+ action: stop
+ tags:
+ - nginx
+ - review-apps
+
pages:
stage: deploy
environment: