From 9d69397721d7513d43033094098ef84858a1f1e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=20K=C3=A4sler?= <tom.kaesler@mni.thm.de> Date: Tue, 15 May 2018 22:33:24 +0200 Subject: [PATCH] add review apps --- .gitlab-ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7a9ff0940..275133add 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -36,6 +36,35 @@ ngbuild: paths: - "$BUILD_DIR" +review: + stage: review + script: + - rsync -av --delete public /srv/nginx/pages/$CI_BUILD_REF_SLUG + environment: + name: review/$CI_BUILD_REF_NAME + url: http://$CI_BUILD_REF_SLUG.$APPS_DOMAIN + on_stop: stop_review + only: + - branches + except: + - master + tags: + - nginx + +stop_review: + stage: review + script: + - rm -rf public /srv/nginx/pages/$CI_BUILD_REF_SLUG + variables: + GIT_STRATEGY: none + when: manual + environment: + name: review/$CI_BUILD_REF_NAME + action: stop + tags: + - nginx + + deploy: stage: deploy only: -- GitLab