Commit 334ed2af authored by anarcat's avatar anarcat
Browse files

Merge branch 'environments' into 'main'

enable environments

See merge request !16
parents e99fc031 eb2f8030
Pipeline #18577 failed with stages
in 29 seconds
......@@ -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]
Supports Markdown
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