Skip to content
代码片段 群组 项目
提交 ed91ed1f 编辑于 作者: Rémy Coutable's avatar Rémy Coutable
浏览文件

Merge branch 'avoid-cleanup-review-apps-while-running' into 'master'

Avoid running and cleaning review apps stepping on each others

See merge request gitlab-org/gitlab!92370
No related branches found
No related tags found
无相关合并请求
...@@ -73,7 +73,6 @@ review-build-cng: ...@@ -73,7 +73,6 @@ review-build-cng:
extends: extends:
- .default-retry - .default-retry
image: ${REVIEW_APPS_IMAGE} image: ${REVIEW_APPS_IMAGE}
resource_group: "review/${CI_COMMIT_REF_NAME}"
variables: variables:
HOST_SUFFIX: "${CI_ENVIRONMENT_SLUG}" HOST_SUFFIX: "${CI_ENVIRONMENT_SLUG}"
DOMAIN: "-${CI_ENVIRONMENT_SLUG}.${REVIEW_APPS_DOMAIN}" DOMAIN: "-${CI_ENVIRONMENT_SLUG}.${REVIEW_APPS_DOMAIN}"
...@@ -139,6 +138,7 @@ review-stop: ...@@ -139,6 +138,7 @@ review-stop:
extends: extends:
- .review-stop-base - .review-stop-base
- .review:rules:review-stop - .review:rules:review-stop
resource_group: review/${CI_COMMIT_REF_SLUG}${SCHEDULE_TYPE} # CI_ENVIRONMENT_SLUG is not available here and we want this to be the same as the environment
stage: deploy stage: deploy
needs: [] needs: []
script: script:
......
...@@ -6,6 +6,7 @@ review-cleanup: ...@@ -6,6 +6,7 @@ review-cleanup:
- .default-retry - .default-retry
- .review:rules:review-cleanup - .review:rules:review-cleanup
image: ${REVIEW_APPS_IMAGE} image: ${REVIEW_APPS_IMAGE}
resource_group: review/${CI_COMMIT_REF_SLUG}${SCHEDULE_TYPE} # CI_ENVIRONMENT_SLUG is not available here and we want this to be the same as the environment
stage: prepare stage: prepare
environment: environment:
name: review/${CI_COMMIT_REF_SLUG}${SCHEDULE_TYPE} # No separator for SCHEDULE_TYPE so it's compatible as before and looks nice without it name: review/${CI_COMMIT_REF_SLUG}${SCHEDULE_TYPE} # No separator for SCHEDULE_TYPE so it's compatible as before and looks nice without it
...@@ -25,6 +26,7 @@ review-cleanup: ...@@ -25,6 +26,7 @@ review-cleanup:
start-review-app-pipeline: start-review-app-pipeline:
extends: extends:
- .review:rules:start-review-app-pipeline - .review:rules:start-review-app-pipeline
resource_group: review/${CI_COMMIT_REF_SLUG}${SCHEDULE_TYPE} # CI_ENVIRONMENT_SLUG is not available here and we want this to be the same as the environment
stage: review stage: review
needs: needs:
- job: build-assets-image - job: build-assets-image
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册