From 0aaa20edd7d4d44848e2dd80cf6ed85993b98df4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Mart=C3=ADn?= Date: Tue, 1 Apr 2025 10:36:06 +0200 Subject: [PATCH] Initial Konflux build of Fedora Rawhide minimal-plus base image --- ...-rawhide-minimal-plus-on-pull-request.yaml | 53 +++++++++++++++++++ ...ra-bootc-rawhide-minimal-plus-on-push.yaml | 48 +++++++++++++++++ 2 files changed, 101 insertions(+) create mode 100644 .tekton/fedora-bootc-rawhide-minimal-plus-on-pull-request.yaml create mode 100644 .tekton/fedora-bootc-rawhide-minimal-plus-on-push.yaml diff --git a/.tekton/fedora-bootc-rawhide-minimal-plus-on-pull-request.yaml b/.tekton/fedora-bootc-rawhide-minimal-plus-on-pull-request.yaml new file mode 100644 index 0000000..9f45eef --- /dev/null +++ b/.tekton/fedora-bootc-rawhide-minimal-plus-on-pull-request.yaml @@ -0,0 +1,53 @@ +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" && ( "./fedora-minimal-plus.yaml".pathChanged() || "./fedora-includes/generic.yaml".pathChanged() + || "./minimal-plus/***".pathChanged() || ".tekton/fedora-bootc-rawhide-minimal-plus-on-pull-request.yaml".pathChanged() + || "Containerfile".pathChanged() ) + creationTimestamp: null + labels: + appstudio.openshift.io/application: fedora-bootc-rawhide + appstudio.openshift.io/component: fedora-bootc-rawhide-minimal-plus + pipelines.appstudio.openshift.io/type: build + name: fedora-bootc-rawhide-minimal-plus-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/fedora/fedora:rawhide + - MANIFEST=fedora-minimal-plus + - name: image-expires-after + value: 5d + - name: output-image + value: quay.io/konflux-fedora/bootc-tenant/fedora-bootc-rawhide-minimal-plus:on-pr-{{revision}} + pipelineRef: + params: + - name: bundle + value: quay.io/fedora-testing/tekton-catalog:pipeline-buildah-build-bootc-multi-platform-oci-ta + - name: name + value: buildah-build-bootc-multi-platform-oci-ta + - name: kind + value: pipeline + resolver: bundles diff --git a/.tekton/fedora-bootc-rawhide-minimal-plus-on-push.yaml b/.tekton/fedora-bootc-rawhide-minimal-plus-on-push.yaml new file mode 100644 index 0000000..834a6c5 --- /dev/null +++ b/.tekton/fedora-bootc-rawhide-minimal-plus-on-push.yaml @@ -0,0 +1,48 @@ +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" + creationTimestamp: null + labels: + appstudio.openshift.io/application: fedora-bootc-rawhide + appstudio.openshift.io/component: fedora-bootc-rawhide-minimal-plus + pipelines.appstudio.openshift.io/type: build + name: fedora-bootc-rawhide-minimal-plus-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/fedora/fedora:rawhide + - MANIFEST=fedora-minimal-plus + - name: output-image + value: quay.io/konflux-fedora/bootc-tenant/fedora-bootc-rawhide-minimal-plus:{{revision}} + pipelineRef: + params: + - name: bundle + value: quay.io/fedora-testing/tekton-catalog:pipeline-buildah-build-bootc-multi-platform-oci-ta + - name: name + value: buildah-build-bootc-multi-platform-oci-ta + - name: kind + value: pipeline + resolver: bundles