Merge branch 'docs-environment-stop-git-strategy' into 'master'
Updates the yaml docs to match the environment docs regarding `GIT_STRATEGY=none` See merge request gitlab-org/gitlab-ce!30283
This commit is contained in:
commit
aef24e9f8d
1 changed files with 6 additions and 0 deletions
|
@ -973,6 +973,8 @@ review_app:
|
||||||
|
|
||||||
stop_review_app:
|
stop_review_app:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
variables:
|
||||||
|
GIT_STRATEGY: none
|
||||||
script: make delete-app
|
script: make delete-app
|
||||||
when: manual
|
when: manual
|
||||||
environment:
|
environment:
|
||||||
|
@ -987,6 +989,10 @@ Once the `review_app` job is successfully finished, it will trigger the
|
||||||
set it up to `manual` so it will need a [manual action](#whenmanual) via
|
set it up to `manual` so it will need a [manual action](#whenmanual) via
|
||||||
GitLab's web interface in order to run.
|
GitLab's web interface in order to run.
|
||||||
|
|
||||||
|
Also in the example, `GIT_STRATEGY` is set to `none` so that GitLab Runner won’t
|
||||||
|
try to check out the code after the branch is deleted when the `stop_review_app`
|
||||||
|
job is [automatically triggered](../environments.md#automatically-stopping-an-environment).
|
||||||
|
|
||||||
The `stop_review_app` job is **required** to have the following keywords defined:
|
The `stop_review_app` job is **required** to have the following keywords defined:
|
||||||
|
|
||||||
- `when` - [reference](#when)
|
- `when` - [reference](#when)
|
||||||
|
|
Loading…
Reference in a new issue