Commit ed6cecfb authored by Albert Salim's avatar Albert Salim

Share review app resource group across jobs

Using the same resource group across the jobs
`review-deploy`, `review-stop`, `review-delete-deployment`
to avoid concurrent execution of these jobs.

If these jobs are allowed to run concurrently,
they would be disrupting one another in the same
kubernetes namespace.
parent efa5169e
...@@ -35,6 +35,7 @@ review-build-cng: ...@@ -35,6 +35,7 @@ review-build-cng:
extends: extends:
- .default-retry - .default-retry
image: registry.gitlab.com/gitlab-org/gitlab-build-images:gitlab-helm3.5-kubectl1.17 image: registry.gitlab.com/gitlab-org/gitlab-build-images:gitlab-helm3.5-kubectl1.17
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}"
...@@ -51,7 +52,6 @@ review-deploy: ...@@ -51,7 +52,6 @@ review-deploy:
- .review:rules:review-deploy - .review:rules:review-deploy
stage: deploy stage: deploy
needs: ["review-build-cng"] needs: ["review-build-cng"]
resource_group: "review/${CI_COMMIT_REF_NAME}"
before_script: before_script:
- export GITLAB_SHELL_VERSION=$(<GITLAB_SHELL_VERSION) - export GITLAB_SHELL_VERSION=$(<GITLAB_SHELL_VERSION)
- export GITALY_VERSION=$(<GITALY_SERVER_VERSION) - export GITALY_VERSION=$(<GITALY_SERVER_VERSION)
......
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