Skip to content

Commit 6e75b71

Browse files
authored
build: Update Konflux pipelines (#1695)
1 parent 1e53e32 commit 6e75b71

5 files changed

+31
-4
lines changed

.tekton/scanner-build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ metadata:
1111
# TODO(ROX-21073): re-enable for all PR branches
1212
pipelinesascode.tekton.dev/on-cel-expression: |
1313
(event == "push" && target_branch.matches("^(master|release-.*)$")) ||
14-
(event == "pull_request" && (source_branch.matches("(konflux|appstudio|rhtap)") || body.pull_request.labels.exists(l, l.name == "konflux-build")))
14+
(event == "pull_request" && (source_branch.matches("(konflux|renovate|appstudio|rhtap)") || body.pull_request.labels.exists(l, l.name == "konflux-build")))
1515
labels:
1616
appstudio.openshift.io/application: acs
1717
appstudio.openshift.io/component: scanner

.tekton/scanner-component-pipeline.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,9 @@ spec:
230230
- name: kind
231231
value: task
232232
resolver: bundles
233+
workspaces:
234+
- name: git-basic-auth
235+
workspace: git-auth
233236

234237
- name: build-container-amd64
235238
params:
@@ -536,6 +539,8 @@ spec:
536539
params:
537540
- name: SOURCE_ARTIFACT
538541
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
542+
- name: CACHI2_ARTIFACT
543+
value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT)
539544
- name: image-digest
540545
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
541546
- name: image-url
@@ -593,3 +598,25 @@ spec:
593598
- input: $(params.skip-checks)
594599
operator: in
595600
values: ["false"]
601+
602+
- name: push-dockerfile
603+
params:
604+
- name: IMAGE
605+
value: $(tasks.build-image-index.results.IMAGE_URL)
606+
- name: IMAGE_DIGEST
607+
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
608+
- name: DOCKERFILE
609+
value: $(params.dockerfile)
610+
- name: CONTEXT
611+
value: $(params.path-context)
612+
- name: SOURCE_ARTIFACT
613+
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
614+
taskRef:
615+
params:
616+
- name: name
617+
value: push-dockerfile-oci-ta
618+
- name: bundle
619+
value: quay.io/konflux-ci/tekton-catalog/task-push-dockerfile-oci-ta:0.1@sha256:a28f33b69b270c4e8def293ff6d19ecc9789e1fee5a5929f1250a2e6cbabed81
620+
- name: kind
621+
value: task
622+
resolver: bundles

.tekton/scanner-db-build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ metadata:
1111
# TODO(ROX-21073): re-enable for all PR branches
1212
pipelinesascode.tekton.dev/on-cel-expression: |
1313
(event == "push" && target_branch.matches("^(master|release-.*)$")) ||
14-
(event == "pull_request" && (source_branch.matches("(konflux|appstudio|rhtap)") || body.pull_request.labels.exists(l, l.name == "konflux-build")))
14+
(event == "pull_request" && (source_branch.matches("(konflux|renovate|appstudio|rhtap)") || body.pull_request.labels.exists(l, l.name == "konflux-build")))
1515
labels:
1616
appstudio.openshift.io/application: acs
1717
appstudio.openshift.io/component: scanner-db

.tekton/scanner-db-slim-build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ metadata:
1111
# TODO(ROX-21073): re-enable for all PR branches
1212
pipelinesascode.tekton.dev/on-cel-expression: |
1313
(event == "push" && target_branch.matches("^(master|release-.*)$")) ||
14-
(event == "pull_request" && (source_branch.matches("(konflux|appstudio|rhtap)") || body.pull_request.labels.exists(l, l.name == "konflux-build")))
14+
(event == "pull_request" && (source_branch.matches("(konflux|renovate|appstudio|rhtap)") || body.pull_request.labels.exists(l, l.name == "konflux-build")))
1515
labels:
1616
appstudio.openshift.io/application: acs
1717
appstudio.openshift.io/component: scanner-db-slim

.tekton/scanner-slim-build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ metadata:
1111
# TODO(ROX-21073): re-enable for all PR branches
1212
pipelinesascode.tekton.dev/on-cel-expression: |
1313
(event == "push" && target_branch.matches("^(master|release-.*)$")) ||
14-
(event == "pull_request" && (source_branch.matches("(konflux|appstudio|rhtap)") || body.pull_request.labels.exists(l, l.name == "konflux-build")))
14+
(event == "pull_request" && (source_branch.matches("(konflux|renovate|appstudio|rhtap)") || body.pull_request.labels.exists(l, l.name == "konflux-build")))
1515
labels:
1616
appstudio.openshift.io/application: acs
1717
appstudio.openshift.io/component: scanner-slim

0 commit comments

Comments
 (0)