Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 25 additions & 4 deletions .tekton/operator-index-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,25 @@ apiVersion: tekton.dev/v1
kind: Pipeline
metadata:
name: operator-index-pipeline

spec:

description: |
This pipeline builds and verifies ACS operator [file-based catalogs](https://konflux-ci.dev/docs/advanced-how-tos/building-olm.adoc#building-the-file-based-catalog).
Modified from the generic Konflux pipeline by adding an OpenShift version parameter.

_Uses `buildah` to create a container image. Its build-time tests are limited to verifying the included catalog and do not scan the image._

finally:

- name: slack-notification
params:
- name: message
value: ':x: `{{event_type}}` pipeline for <https://konflux-ui.apps.stone-prd-rh01.pg1f.p1.openshiftapps.com/ns/$(context.pipelineRun.namespace)/pipelinerun/$(context.pipelineRun.name)|$(context.pipelineRun.name)> (`$(params.output-image-repo)`, revision <$(params.git-url)/commit/$(params.revision)|$(params.revision)>) has failed.'
- name: key-name
value: 'acs-konflux-notifications'
when:
# Run when any task has Failed
# Run when any task has Failed
- input: $(tasks.status)
operator: in
values: ["Failed"]
Expand All @@ -29,6 +33,7 @@ spec:
- name: kind
value: task
resolver: bundles

- name: show-sbom
params:
- name: IMAGE_URL
Expand All @@ -42,6 +47,7 @@ spec:
- name: kind
value: task
resolver: bundles

- name: show-summary
params:
- name: pipelinerun-name
Expand All @@ -61,6 +67,7 @@ spec:
- name: kind
value: task
resolver: bundles

- name: post-metric-end
params:
- name: AGGREGATE_TASKS_STATUS
Expand All @@ -74,6 +81,7 @@ spec:
- name: kind
value: task
resolver: bundles

params:
- description: Source Repository URL
name: git-url
Expand Down Expand Up @@ -117,9 +125,9 @@ spec:
type: string
- description: Image tag expiration time, time values could be something like 1h, 2d, 3w for hours, days, and weeks, respectively.
name: image-expires-after
# Image expiry disabled because it sets quay.expires-after label on the image which fails Conforma at release time.
# A downside is that FBC images will stay in our Quay forever while certainly they become unneeded as time passes.
# TODO(ROX-27836): find a way to garbage-collect FBC images.
# Image expiry disabled because it sets quay.expires-after label on the image which fails Conforma at release time.
# A downside is that FBC images will stay in our Quay forever while certainly they become unneeded as time passes.
# TODO(ROX-27836): find a way to garbage-collect FBC images.
default: ''
- default: "false"
description: Build a source image.
Expand Down Expand Up @@ -149,6 +157,7 @@ spec:
default: 'false'
description: Enable cache proxy configuration
type: string

results:
- description: ""
name: IMAGE_URL
Expand All @@ -162,11 +171,15 @@ spec:
- description: ""
name: CHAINS-GIT_COMMIT
value: $(tasks.clone-repository.results.commit)

workspaces:
- name: git-auth

tasks:

- name: post-metric-start
taskRef: *post-bigquery-metrics-ref

- name: init
params:
- name: enable-cache-proxy
Expand All @@ -180,6 +193,7 @@ spec:
- name: kind
value: task
resolver: bundles

- name: clone-repository
params:
- name: url
Expand All @@ -202,6 +216,7 @@ spec:
workspaces:
- name: basic-auth
workspace: git-auth

- name: build-images
matrix:
params:
Expand Down Expand Up @@ -245,6 +260,7 @@ spec:
value: task
resolver: bundles
retries: 1

- name: build-image-index
params:
- name: IMAGE
Expand All @@ -270,6 +286,7 @@ spec:
value: task
resolver: bundles
runAfter: [ build-images ]

- name: deprecated-base-image-check
params:
- name: IMAGE_URL
Expand All @@ -289,6 +306,7 @@ spec:
- input: $(params.skip-checks)
operator: in
values: ["false"]

- name: apply-tags
params:
- name: IMAGE_URL
Expand All @@ -304,6 +322,7 @@ spec:
- name: kind
value: task
resolver: bundles

- name: validate-fbc
params:
- name: IMAGE_URL
Expand All @@ -323,6 +342,7 @@ spec:
- input: $(params.skip-checks)
operator: in
values: ["false"]

- name: fbc-target-index-pruning-check
params:
- name: IMAGE_URL
Expand All @@ -346,6 +366,7 @@ spec:
- input: $(params.skip-checks)
operator: in
values: ["false"]

- name: fbc-fips-check-oci-ta
params:
- name: image-digest
Expand Down