From f6cc77bc3a19f7050df83fc232ba4a369713e7cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Stalder?= Date: Tue, 23 Apr 2019 10:17:50 +0200 Subject: [PATCH] docs: add GitLab GIT_STRATEGY for stop_preview_app Use `GIT_STRATEGY: none` in `stop_review_app` to make job work after successful merges and when the branch was deleted. Without this, the application is not stopped when the branch is deleted on merge as the runner pulls the git repository by default, but cannot find the tree in this moment. [skip ci] --- docs/community/tutorials/deploying-with-gitlab-ci.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/community/tutorials/deploying-with-gitlab-ci.md b/docs/community/tutorials/deploying-with-gitlab-ci.md index 5c7fd2e4d..e35119752 100644 --- a/docs/community/tutorials/deploying-with-gitlab-ci.md +++ b/docs/community/tutorials/deploying-with-gitlab-ci.md @@ -87,6 +87,8 @@ The above only runs for non-master branches, and will _also_ trigger an `on_stop stop_review_app: image: ilyasemenov/gitlab-ci-git-push stage: deploy + variables: + GIT_STRATEGY: none environment: name: review/$CI_COMMIT_REF_NAME action: stop