mirror of
https://github.com/coreos/fedora-coreos-config.git
synced 2026-11-03 22:59:47 -09:00
tree: import changes from testing-devel at 44f63b35b3
This commit is contained in:
parent
cb43eece7b
commit
d5151b2cdc
9 changed files with 9 additions and 10 deletions
|
|
@ -13,7 +13,7 @@ metadata:
|
|||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
||||
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && !(files.all.all(f, f.matches("ci/buildroot/") || f.matches(".tekton/fcos-buildroot/"))) && target_branch == "branched"
|
||||
pipelinesascode.tekton.dev/on-cel-expression: "false"
|
||||
creationTimestamp: null
|
||||
spec:
|
||||
params:
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ metadata:
|
|||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
||||
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && !(files.all.all(f, f.matches("ci/buildroot/") || f.matches(".tekton/fcos-buildroot/"))) && target_branch == "next-devel"
|
||||
pipelinesascode.tekton.dev/on-cel-expression: "false"
|
||||
creationTimestamp: null
|
||||
spec:
|
||||
params:
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ metadata:
|
|||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
||||
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && !(files.all.all(f, f.matches("ci/buildroot/") || f.matches(".tekton/fcos-buildroot/"))) && target_branch == "next"
|
||||
pipelinesascode.tekton.dev/on-cel-expression: "false"
|
||||
creationTimestamp: null
|
||||
spec:
|
||||
params:
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ metadata:
|
|||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
||||
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "rawhide" && ".tekton/trigger".pathChanged()
|
||||
pipelinesascode.tekton.dev/on-cel-expression: "false"
|
||||
creationTimestamp: null
|
||||
spec:
|
||||
params:
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ metadata:
|
|||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
||||
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && !(files.all.all(f, f.matches("ci/buildroot/") || f.matches(".tekton/fcos-buildroot/"))) && target_branch == "stable"
|
||||
pipelinesascode.tekton.dev/on-cel-expression: "false"
|
||||
creationTimestamp: null
|
||||
spec:
|
||||
params:
|
||||
|
|
|
|||
|
|
@ -33,8 +33,6 @@ streams:
|
|||
|
||||
- name: rawhide
|
||||
has_overrides: true
|
||||
# rawhide on-push only triggers when .tekton/trigger file changes
|
||||
on_push_cel_expression: 'event == "push" && target_branch == "rawhide" && ".tekton/trigger".pathChanged()'
|
||||
|
||||
- name: branched
|
||||
has_overrides: true
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ metadata:
|
|||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
||||
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && !(files.all.all(f, f.matches("ci/buildroot/") || f.matches(".tekton/fcos-buildroot/"))) && target_branch == "testing-devel"
|
||||
pipelinesascode.tekton.dev/on-cel-expression: "false"
|
||||
creationTimestamp: null
|
||||
spec:
|
||||
params:
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ metadata:
|
|||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
||||
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && !(files.all.all(f, f.matches("ci/buildroot/") || f.matches(".tekton/fcos-buildroot/"))) && target_branch == "testing"
|
||||
pipelinesascode.tekton.dev/on-cel-expression: "false"
|
||||
creationTimestamp: null
|
||||
spec:
|
||||
params:
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ except ImportError as e:
|
|||
EVENT_CONFIGS = {
|
||||
"on-push": {
|
||||
"cancel_in_progress": False,
|
||||
"cel_expression_base": 'event == "push" && !(files.all.all(f, f.matches("ci/buildroot/") || f.matches(".tekton/fcos-buildroot/")))',
|
||||
"output_image_suffix": ":{{revision}}",
|
||||
"image_expires_after": None,
|
||||
},
|
||||
|
|
@ -73,6 +72,8 @@ def generate_pipelinerun(
|
|||
# Check for custom CEL expression for on-push event
|
||||
if event_type == "on-push" and "on_push_cel_expression" in stream_config:
|
||||
cel_expression = stream_config["on_push_cel_expression"]
|
||||
elif "cel_expression_base" not in event_config:
|
||||
cel_expression = f'"false"'
|
||||
else:
|
||||
# Build the CEL expression with stream-specific branch filter
|
||||
cel_expression = f'{event_config["cel_expression_base"]} && target_branch == "{stream_name}"'
|
||||
|
|
|
|||
Loading…
Reference in a new issue