diff options
-rw-r--r-- | .gitlab-ci.yml | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3f37e01..31fb80f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,6 @@ --- +variables: + SITE_URL: spec.torproject.org build: # Chosen more or less arbitrarily. @@ -15,5 +17,13 @@ build: include: project: tpo/tpa/ci-templates file: - #- static-shim-deploy.yml + - static-shim-deploy.yml - pages-deploy.yml + +# use pages for merge requests, not main (which is the default in the +# above template). the logic here is that we want people that do not +# have acess to the repository to still have a preview of their merge +# request. +pages: + rules: + - if: '$CI_PIPELINE_SOURCE == "merge_request"' |