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

View File

@ -7,6 +7,13 @@ variables: &global_variables
DB_HOST: postgres
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
key:
files: