mirror of
https://github.com/kasmtech/workspaces-images.git
synced 2026-07-17 16:46:08 +00:00
QA-354 Prevent duplicate pipelines for MRs
This commit is contained in:
parent
30de88b100
commit
cb84cca5c0
1 changed files with 10 additions and 0 deletions
|
|
@ -16,6 +16,16 @@ variables:
|
|||
DOCKER_AUTH_CONFIG: ${_DOCKER_AUTH_CONFIG}
|
||||
default:
|
||||
retry: 2
|
||||
|
||||
# Prevent duplicate pipelines for push events to branches that also have open MRs
|
||||
workflow:
|
||||
rules:
|
||||
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||
when: always
|
||||
- if: $CI_PIPELINE_SOURCE == "push" && $CI_OPEN_MERGE_REQUESTS
|
||||
when: never
|
||||
- when: always
|
||||
|
||||
before_script:
|
||||
- export SANITIZED_BRANCH="$(echo $CI_COMMIT_REF_NAME | sed -r 's#^release/##' | sed 's/\//_/g')"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue