Commit 994c4629 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'disable-dast-on-master' into 'master'

Ensure the `dast` job does not run on `master`

See merge request gitlab-org/gitlab-ce!32047
parents 48feb671 c10aeb12
...@@ -76,3 +76,15 @@ ...@@ -76,3 +76,15 @@
- apk add --update openssl - apk add --update openssl
- wget $CI_PROJECT_URL/raw/$CI_COMMIT_SHA/scripts/$SCRIPT_NAME - wget $CI_PROJECT_URL/raw/$CI_COMMIT_SHA/scripts/$SCRIPT_NAME
- chmod 755 $(basename $SCRIPT_NAME) - chmod 755 $(basename $SCRIPT_NAME)
.review-only: &review-only
only:
refs:
- branches@gitlab-org/gitlab-ce
- branches@gitlab-org/gitlab-ee
kubernetes: active
except:
refs:
- master
- /^\d+-\d+-auto-deploy-\d+$/
- /(^docs[\/-].+|.+-docs$)/
...@@ -27,7 +27,9 @@ dependency_scanning: ...@@ -27,7 +27,9 @@ dependency_scanning:
cache: {} cache: {}
dast: dast:
extends: .dedicated-no-docs extends:
- .dedicated-runner
- .review-only
stage: qa stage: qa
dependencies: dependencies:
- review-deploy - review-deploy
......
.review-only: &review-only
only:
refs:
- branches@gitlab-org/gitlab-ce
- branches@gitlab-org/gitlab-ee
kubernetes: active
except:
refs:
- master
- /^\d+-\d+-auto-deploy-\d+$/
- /(^docs[\/-].+|.+-docs$)/
.review-schedules-only: &review-schedules-only .review-schedules-only: &review-schedules-only
only: only:
refs: refs:
...@@ -24,8 +12,9 @@ ...@@ -24,8 +12,9 @@
- /(^docs[\/-].+|.+-docs$)/ - /(^docs[\/-].+|.+-docs$)/
.review-base: &review-base .review-base: &review-base
extends: .dedicated-runner extends:
<<: *review-only - .dedicated-runner
- .review-only
image: registry.gitlab.com/gitlab-org/gitlab-build-images:gitlab-charts-build-base image: registry.gitlab.com/gitlab-org/gitlab-build-images:gitlab-charts-build-base
cache: {} cache: {}
dependencies: [] dependencies: []
...@@ -68,7 +57,7 @@ build-qa-image: ...@@ -68,7 +57,7 @@ build-qa-image:
- BUILD_TRIGGER_TOKEN=$REVIEW_APPS_BUILD_TRIGGER_TOKEN ./scripts/trigger-build cng - BUILD_TRIGGER_TOKEN=$REVIEW_APPS_BUILD_TRIGGER_TOKEN ./scripts/trigger-build cng
review-build-cng: review-build-cng:
<<: *review-only extends: .review-only
<<: *review-build-cng-base <<: *review-build-cng-base
schedule:review-build-cng: schedule:review-build-cng:
...@@ -117,8 +106,9 @@ schedule:review-deploy: ...@@ -117,8 +106,9 @@ schedule:review-deploy:
<<: *review-schedules-only <<: *review-schedules-only
review-stop: review-stop:
<<: *review-only extends:
extends: .single-script-job-dedicated-runner - .single-script-job-dedicated-runner
- .review-only
image: registry.gitlab.com/gitlab-org/gitlab-build-images:gitlab-charts-build-base image: registry.gitlab.com/gitlab-org/gitlab-build-images:gitlab-charts-build-base
stage: review stage: review
when: manual when: manual
......
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