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: ...@@ -377,7 +377,7 @@ db:rollback:
- bundle exec rake db:migrate SKIP_SCHEMA_VERSION_CHECK=true - bundle exec rake db:migrate SKIP_SCHEMA_VERSION_CHECK=true
db:gitlabcom-database-testing: db:gitlabcom-database-testing:
extends: .rails:rules:ee-and-foss-mr-with-migration extends: .rails:rules:db:gitlabcom-database-testing
stage: test stage: test
image: ruby:2.7-alpine image: ruby:2.7-alpine
needs: [] needs: []
......
...@@ -523,6 +523,13 @@ ...@@ -523,6 +523,13 @@
changes: *db-patterns changes: *db-patterns
- <<: *if-merge-request-title-run-all-rspec - <<: *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: .rails:rules:ee-and-foss-unit:
rules: rules:
- changes: *backend-patterns - 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