add branch workflow

This commit is contained in:
Work 2026-01-28 16:09:49 +03:00
parent ae30445723
commit 60636e8b34
2 changed files with 4 additions and 0 deletions

View File

@ -18,6 +18,7 @@ generate-pipeline:
rules: rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"' - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: '$CI_COMMIT_BRANCH == "stage"' - if: '$CI_COMMIT_BRANCH == "stage"'
- if: '$CI_COMMIT_BRANCH =~ /^feature\/.*/'
trigger-downstream: trigger-downstream:
stage: trigger stage: trigger
@ -43,3 +44,4 @@ trigger-downstream:
rules: rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"' - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: '$CI_COMMIT_BRANCH == "stage"' - if: '$CI_COMMIT_BRANCH == "stage"'
- if: '$CI_COMMIT_BRANCH =~ /^feature\/.*/'

View File

@ -74,6 +74,7 @@ validate-${job_prefix}:
rules: rules:
- if: '\$CI_PIPELINE_SOURCE == "merge_request_event"' - if: '\$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: '\$CI_COMMIT_BRANCH == "stage"' - if: '\$CI_COMMIT_BRANCH == "stage"'
- if: '\$CI_COMMIT_BRANCH =~ /^feature\\/.*/'
- if: '\$CI_PIPELINE_SOURCE == "pipeline"' - if: '\$CI_PIPELINE_SOURCE == "pipeline"'
interruptible: true interruptible: true
artifacts: artifacts:
@ -115,6 +116,7 @@ plan-${job_prefix}:
rules: rules:
- if: '\$CI_PIPELINE_SOURCE == "merge_request_event"' - if: '\$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: '\$CI_COMMIT_BRANCH == "stage"' - if: '\$CI_COMMIT_BRANCH == "stage"'
- if: '\$CI_COMMIT_BRANCH =~ /^feature\\/.*/'
- if: '\$CI_PIPELINE_SOURCE == "pipeline"' - if: '\$CI_PIPELINE_SOURCE == "pipeline"'
interruptible: true interruptible: true
artifacts: artifacts: