Verified Commit 667a560a authored by anarcat's avatar anarcat
Browse files

implement stop-review task

This requires commit:

8840fb990b5fbda65fdea8a34e62a41d7bf9ef85 "split ssh prepare tasks into
a different task"

... part of tpo/tpa/ci-templates!52.
parent fcdf085e
......@@ -51,10 +51,22 @@ deploy-review:
environment:
name: review/$CI_COMMIT_REF_SLUG
url: https://review.torproject.org/$CI_ENVIRONMENT_SLUG
on_stop: stop-review
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]
before_script: !reference [.prepare-deploy-static]
script: !reference [deploy-static, script]
stop-review:
environment:
name: review/$CI_COMMIT_REF_SLUG
action: stop
when: manual
stage: deploy
before_script: !reference [.prepare-deploy-static]
script:
- ssh -o UserKnownHostsFile=".ssh/known_hosts" -i ".ssh/private_key" static-gitlab-shim@static-gitlab-shim.torproject.org delete-environment $REMOTE_SUBDIR
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