Skip to content
Snippets Groups Projects
Commit f4bb5dd0 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis
Browse files

Clarify that stage is needed to stop environments

[ci skip]
parent 58cc360a
No related branches found
No related tags found
No related merge requests found
Loading
@@ -535,6 +535,7 @@ deploy_review:
Loading
@@ -535,6 +535,7 @@ deploy_review:
- master - master
   
stop_review: stop_review:
stage: deploy
variables: variables:
GIT_STRATEGY: none GIT_STRATEGY: none
script: script:
Loading
@@ -555,7 +556,9 @@ when their associated branch is deleted.
Loading
@@ -555,7 +556,9 @@ when their associated branch is deleted.
   
When you have an environment that has a stop action defined (typically when When you have an environment that has a stop action defined (typically when
the environment describes a review app), GitLab will automatically trigger a the environment describes a review app), GitLab will automatically trigger a
stop action when the associated branch is deleted. stop action when the associated branch is deleted. The `stop_review` job must
be in the same `stage` as the `deploy_review` one in order for the environment
to automatically stop.
   
You can read more in the [`.gitlab-ci.yml` reference][onstop]. You can read more in the [`.gitlab-ci.yml` reference][onstop].
   
Loading
Loading
Loading
@@ -690,6 +690,8 @@ The `stop_review_app` job is **required** to have the following keywords defined
Loading
@@ -690,6 +690,8 @@ The `stop_review_app` job is **required** to have the following keywords defined
- `when` - [reference](#when) - `when` - [reference](#when)
- `environment:name` - `environment:name`
- `environment:action` - `environment:action`
- `stage` should be the same as the `review_app` in order for the environment
to stop automatically when the branch is deleted
   
#### dynamic environments #### dynamic environments
   
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment