An update of a compose image from a specific Fedora version triggers at least 4 builds: 'minimal', 'minimal-plus', 'standard' and 'iot'. We usually have 2 compose images updates (Fedora 42 and Rawhide) per day so up to 8 builds are triggered at the same time. As we don't seem to have a lot of resources in the Konflux cluster this leads to build failures because of timeouts (the default pipeline timeout is 1h). This change tries to mitigate this until we get more resources in the Konflux cluster. Signed-off-by: Miguel Martín <mmartinv@redhat.com>
54 lines
2.1 KiB
YAML
54 lines
2.1 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/target_branch: '{{target_branch}}'
|
|
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch
|
|
== "main" && ( "./fedora-iot.yaml".pathChanged() || "./iot/***".pathChanged()
|
|
|| "./fedora-minimal-plus.yaml".pathChanged() || "./minimal-plus/***".pathChanged()
|
|
|| "./fedora-minimal.yaml".pathChanged() || "./minimal/***".pathChanged() ||
|
|
"./fedora-includes/generic.yaml".pathChanged() || ".tekton/fedora-bootc-42-iot-push.yaml".pathChanged()
|
|
|| "Containerfile".pathChanged() )
|
|
creationTimestamp: null
|
|
labels:
|
|
appstudio.openshift.io/application: fedora-bootc-42
|
|
appstudio.openshift.io/component: fedora-bootc-42-iot
|
|
pipelines.appstudio.openshift.io/type: build
|
|
name: fedora-bootc-42-iot-on-push
|
|
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-20250409.0@sha256:c72e43a4baf6f744b5b87f546d61d9854aa8a6f3b754f94dc456dba76786addf
|
|
- MANIFEST=fedora-iot
|
|
- name: output-image
|
|
value: quay.io/konflux-fedora/bootc-tenant/fedora-bootc-42-iot:{{revision}}
|
|
pipelineRef:
|
|
params:
|
|
- name: bundle
|
|
value: quay.io/bootc-devel/tekton-catalog/pipeline-buildah-build-bootc-multi-platform-oci-ta@sha256:2474cc2cd84db2bc0abe595d35a878d01af3bf8783aac0ccc252c9a7a00d8271
|
|
- name: name
|
|
value: buildah-build-bootc-multi-platform-oci-ta
|
|
- name: kind
|
|
value: pipeline
|
|
resolver: bundles
|
|
timeouts:
|
|
pipeline: 6h
|