Prevent duplicate pipelines

This commit is contained in:
Tusooa Zhu 2022-08-28 09:54:28 -04:00
parent 50d3209ce8
commit 27a8f6a8d9
No known key found for this signature in database
GPG Key ID: 7B467EDE43A08224
1 changed files with 7 additions and 0 deletions

View File

@ -7,6 +7,13 @@ variables: &global_variables
DB_HOST: postgres DB_HOST: postgres
MIX_ENV: test MIX_ENV: test
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
when: never
- if: $CI_COMMIT_BRANCH
cache: &global_cache_policy cache: &global_cache_policy
key: key:
files: files: