debian-bootc-base-images/.tekton/fedora-bootc-42-standard-pull-request.yaml
Miguel Martín d32441334d
Use pull request pipelinerun to trigger konflux builds.
Using the on push pipelinerun has an undesired side effect of releasing
all the renovate builds before merging them into the main branch.

Use the "on pull request" pipelinerun in an attempt to avoid this.

Signed-off-by: Miguel Martín <mmartinv@redhat.com>
2025-06-30 10:48:31 +02:00

68 lines
2.5 KiB
YAML

apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
annotations:
build.appstudio.openshift.io/repo: https://gitlab.com/fedora/bootc/base-images/-/tree/{{revision}}
build.appstudio.redhat.com/commit_sha: '{{revision}}'
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
pipelinesascode.tekton.dev/cancel-in-progress: "true"
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: |
(
(event == "pull_request" && target_branch == "main") ||
(event == "push" && target_branch.startsWith("renovate/"))
) && (
".tekton/fedora-bootc-42-standard-pull-request.yaml".pathChanged() ||
"Containerfile".pathChanged() ||
"bootc-base-imagectl".pathChanged() ||
"install-manifests".pathChanged() ||
"fedora-includes/generic.yaml".pathChanged() ||
"minimal.yaml".pathChanged() ||
"minimal/***".pathChanged() ||
"minimal-plus.hidden.yaml".pathChanged() ||
"minimal-plus/***".pathChanged() ||
"standard.yaml".pathChanged() ||
"standard/***".pathChanged()
)
creationTimestamp: null
labels:
appstudio.openshift.io/application: fedora-bootc-42
appstudio.openshift.io/component: fedora-bootc-42-standard
pipelines.appstudio.openshift.io/type: build
name: fedora-bootc-42-standard-on-pull-request
spec:
params:
- name: git-url
value: '{{source_url}}'
- name: revision
value: '{{revision}}'
- name: build-platforms
value:
- linux/amd64
- linux/arm64
- name: dockerfile
value: Containerfile
- name: path-context
value: .
- name: privileged-nested
value: true
- name: build-args
value:
- REPOS_IMAGE=quay.io/bootc-devel/fedora-bootc-42-compose:Fedora-42-updates-testing-20250630.0@sha256:f7d33d503607f01612697220f9f2179276b3883085a15ab7a6dc73ad75eaeaf8
- MANIFEST=fedora-standard
- name: image-expires-after
value: 5d
- name: output-image
value: quay.io/konflux-fedora/bootc-tenant/fedora-bootc-42-standard:on-pr-{{revision}}
pipelineRef:
params:
- name: bundle
value: quay.io/bootc-devel/tekton-catalog/pipeline-buildah-build-bootc-multi-platform-oci-ta@sha256:a39bc3e36b697385b8e5fb69d8257d3a58cb8199eab5ead8f265ae5ad1f2bbc2
- name: name
value: buildah-build-bootc-multi-platform-oci-ta
- name: kind
value: pipeline
resolver: bundles
timeouts:
pipeline: 6h