Commit 8b955e4e authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch 'docs/ci-clarify-stop-action' into 'master'

Clarify that stage is needed to stop environments

Closes #28110

See merge request !9296
parents 58cc360a f4bb5dd0
......@@ -535,6 +535,7 @@ deploy_review:
- master
stop_review:
stage: deploy
variables:
GIT_STRATEGY: none
script:
......@@ -555,7 +556,9 @@ when their associated branch is deleted.
When you have an environment that has a stop action defined (typically when
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].
......
......@@ -690,6 +690,8 @@ The `stop_review_app` job is **required** to have the following keywords defined
- `when` - [reference](#when)
- `environment:name`
- `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
......
Markdown is supported
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