Skip to content
Snippets Groups Projects

Only make Review App deployment automatic for frontend changes

All threads resolved!
@@ -81,9 +81,7 @@ review-deploy:
@@ -81,9 +81,7 @@ review-deploy:
- .review-workflow-base
- .review-workflow-base
- .review:rules:mr-and-schedule-auto-if-frontend-manual-otherwise
- .review:rules:mr-and-schedule-auto-if-frontend-manual-otherwise
stage: review
stage: review
needs:
dependencies: []
- job: review-build-cng
artifacts: false
resource_group: "review/${CI_COMMIT_REF_NAME}"
resource_group: "review/${CI_COMMIT_REF_NAME}"
allow_failure: true
allow_failure: true
before_script:
before_script:
@@ -95,10 +93,6 @@ review-deploy:
@@ -95,10 +93,6 @@ review-deploy:
- source ./scripts/utils.sh
- source ./scripts/utils.sh
- install_api_client_dependencies_with_apk
- install_api_client_dependencies_with_apk
- source scripts/review_apps/review-apps.sh
- source scripts/review_apps/review-apps.sh
# When the job is manual, review-qa-smoke is also manual and we don't want people
# to have to manually start the jobs in sequence, so we do it for them.
- '[ -z $CI_JOB_MANUAL ] || play_job "review-qa-smoke"'
- '[ -z $CI_JOB_MANUAL ] || play_job "review-performance"'
script:
script:
- check_kube_domain
- check_kube_domain
- ensure_namespace
- ensure_namespace
@@ -107,6 +101,10 @@ review-deploy:
@@ -107,6 +101,10 @@ review-deploy:
- download_chart
- download_chart
- date
- date
- deploy || (display_deployment_debug && exit 1)
- deploy || (display_deployment_debug && exit 1)
 
# When the job is manual, review-qa-smoke is also manual and we don't want people
 
# to have to manually start the jobs in sequence, so we do it for them.
 
- '[ -z $CI_JOB_MANUAL ] || play_job "review-qa-smoke"'
 
- '[ -z $CI_JOB_MANUAL ] || play_job "review-performance"'
artifacts:
artifacts:
paths: [environment_url.txt]
paths: [environment_url.txt]
expire_in: 2 days
expire_in: 2 days
Loading