Skip to content
Snippets Groups Projects

enable environments

Merged anarcat requested to merge environments into main
1 file
+ 17
1
Compare changes
  • Side-by-side
  • Inline
+ 17
1
@@ -11,8 +11,9 @@ image: registry.gitlab.com/pages/hugo/hugo_extended:0.65.3
variables:
GIT_SUBMODULE_STRATEGY: recursive
SITE_URL: status.torproject.org
SUBDIR: public/
# now from environment
#SITE_URL: status.torproject.org
include:
project: tpo/tpa/ci-templates
@@ -38,3 +39,18 @@ pages:
- public
only:
- merge_requests
deploy-review:
stage: deploy
variables:
REMOTE_SUBDIR: public/$CI_ENVIRONMENT_SLUG
environment:
name: review/$CI_COMMIT_REF_SLUG
url: https://review.torproject.org/$CI_ENVIRONMENT_SLUG
rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
when: never
- if: '$CI_COMMIT_BRANCH'
image: !reference [deploy-static, image]
resource_group: !reference [deploy-static, resource_group]
script: !reference [deploy-static, script]
Loading