Skip to content
Snippets Groups Projects
Commit 9d693977 authored by Tom Käsler's avatar Tom Käsler
Browse files

add review apps

parent 904da717
Branches
Tags
No related merge requests found
......@@ -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:
......
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