UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit cb946f1c authored by Josh Wolf's avatar Josh Wolf
Browse files

ci: only run infra jobs on scheduled runs

parent 0ccf1d4f
No related branches found
No related tags found
1 merge request!258Release 1.1
...@@ -187,10 +187,6 @@ upgrade: ...@@ -187,10 +187,6 @@ upgrade:
.infra fork: .infra fork:
stage: network up stage: network up
rules: rules:
# run infrastructure pipelines only on merges into release branches, and run regardless of failure
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME =~ /^release*/'
allow_failure: false
when: manual
# Run on scheduled jobs # Run on scheduled jobs
- if: '$CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_BRANCH == "master"' - if: '$CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_BRANCH == "master"'
allow_failure: false allow_failure: false
...@@ -198,18 +194,12 @@ upgrade: ...@@ -198,18 +194,12 @@ upgrade:
# Abstract for jobs responsible for creating infrastructure # Abstract for jobs responsible for creating infrastructure
.infra create: .infra create:
rules: rules:
# run infrastructure pipelines only on merges into release branches
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME =~ /^release*/'
# Run on scheduled jobs # Run on scheduled jobs
- if: '$CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_BRANCH == "master"' - if: '$CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_BRANCH == "master"'
# Abstract for jobs responsible for cleaning up infrastructure # Abstract for jobs responsible for cleaning up infrastructure
.infra cleanup: .infra cleanup:
rules: rules:
# run infrastructure pipelines only on merges into release branches, and run regardless of failure
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME =~ /^release*/'
allow_failure: true
when: always
# Run on scheduled jobs # Run on scheduled jobs
- if: '$CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_BRANCH == "master"' - if: '$CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_BRANCH == "master"'
allow_failure: true allow_failure: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment