diff --git a/.tekton/centos-bootc-pull-request.yaml b/.tekton/centos-bootc-pull-request.yaml index 76014c42..b93b4210 100644 --- a/.tekton/centos-bootc-pull-request.yaml +++ b/.tekton/centos-bootc-pull-request.yaml @@ -29,6 +29,8 @@ spec: value: . - name: revision value: "{{revision}}" + - name: config-file + value: "centos-bootc-config.json" pipelineRef: name: ostree-build workspaces: diff --git a/.tekton/centos-bootc-push.yaml b/.tekton/centos-bootc-push.yaml index d8f172aa..272f65f8 100644 --- a/.tekton/centos-bootc-push.yaml +++ b/.tekton/centos-bootc-push.yaml @@ -29,6 +29,8 @@ spec: value: . - name: revision value: "{{revision}}" + - name: config-file + value: "centos-bootc-config.json" pipelineRef: name: ostree-build workspaces: diff --git a/.tekton/fedora-bootc-pull-request.yaml b/.tekton/fedora-bootc-pull-request.yaml index c12edf4e..30266c44 100644 --- a/.tekton/fedora-bootc-pull-request.yaml +++ b/.tekton/fedora-bootc-pull-request.yaml @@ -29,6 +29,8 @@ spec: value: . - name: revision value: "{{revision}}" + - name: config-file + value: "fedora-bootc-config.json" pipelineRef: name: ostree-build workspaces: diff --git a/.tekton/fedora-bootc-push.yaml b/.tekton/fedora-bootc-push.yaml index 45a2f24d..8eb728f9 100644 --- a/.tekton/fedora-bootc-push.yaml +++ b/.tekton/fedora-bootc-push.yaml @@ -29,6 +29,8 @@ spec: value: . - name: revision value: "{{revision}}" + - name: config-file + value: "fedora-bootc-config.json" pipelineRef: name: ostree-build workspaces: diff --git a/.tekton/ostree-build.yaml b/.tekton/ostree-build.yaml index ff09abb3..26bb73d5 100644 --- a/.tekton/ostree-build.yaml +++ b/.tekton/ostree-build.yaml @@ -74,6 +74,10 @@ spec: Image tag expiration time, time values could be something like 1h, 2d, 3w for hours, days, and weeks, respectively. name: image-expires-after + - name: config-file + description: config file to use for rpm-ostree tool + type: string + default: "" results: - description: "" name: IMAGE_URL @@ -232,6 +236,8 @@ spec: value: linux/amd64 - name: BUILDER_IMAGE value: quay.io/centos-bootc/builder:latest + - name: CONFIG_FILE + value: $(params.config-file) runAfter: - clone-repository taskRef: @@ -267,6 +273,8 @@ spec: value: linux/arm64 - name: BUILDER_IMAGE value: quay.io/centos-bootc/builder:latest + - name: CONFIG_FILE + value: $(params.config-file) runAfter: - clone-repository-arm64 taskRef: @@ -302,6 +310,8 @@ spec: value: linux/s390x - name: BUILDER_IMAGE value: quay.io/centos-bootc/builder:latest + - name: CONFIG_FILE + value: $(params.config-file) runAfter: - clone-repository-s390x taskRef: @@ -337,6 +347,8 @@ spec: value: linux/ppc64le - name: BUILDER_IMAGE value: quay.io/centos-bootc/builder:latest + - name: CONFIG_FILE + value: $(params.config-file) runAfter: - clone-repository-ppc64le taskRef: diff --git a/centos-bootc-config.json b/centos-bootc-config.json new file mode 100644 index 00000000..6d1c1604 --- /dev/null +++ b/centos-bootc-config.json @@ -0,0 +1,7 @@ +{ + "Labels": { + "redhat.compose-id": "CentOS-Stream-9-20240131.d.0", + "redhat.id": "centos", + "redhat.version-id": "9" + } +} diff --git a/fedora-bootc-config.json b/fedora-bootc-config.json new file mode 100644 index 00000000..d0cba039 --- /dev/null +++ b/fedora-bootc-config.json @@ -0,0 +1,7 @@ +{ + "Labels": { + "redhat.compose-id": "Fedora-ELN-20240131.1", + "redhat.id": "fedora", + "redhat.version-id": "ELN" + } +}