Commit 1634b094 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'ab/dbtesting-trigger' into 'master'

Trigger db testing only when token is present

See merge request gitlab-org/gitlab!52692
parents 10b9090f fdaec8f7
......@@ -377,7 +377,7 @@ db:rollback:
- bundle exec rake db:migrate SKIP_SCHEMA_VERSION_CHECK=true
db:gitlabcom-database-testing:
extends: .rails:rules:ee-and-foss-mr-with-migration
extends: .rails:rules:db:gitlabcom-database-testing
stage: test
image: ruby:2.7-alpine
needs: []
......
......@@ -523,6 +523,13 @@
changes: *db-patterns
- <<: *if-merge-request-title-run-all-rspec
.rails:rules:db:gitlabcom-database-testing:
rules:
- if: '$GITLABCOM_DATABASE_TESTING_TRIGGER_TOKEN == null'
when: never
- <<: *if-merge-request
changes: *db-patterns
.rails:rules:ee-and-foss-unit:
rules:
- changes: *backend-patterns
......
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