Skip to content

Commit d79b36b

Browse files
authored
Merge pull request #196 from chmeliik/fix-1.5-pipelines
Fix 1.5 pipelines
2 parents 8984351 + 09d3795 commit d79b36b

4 files changed

+40
-1093
lines changed

.tekton/rhtap-task-runner-1-5-pull-request.yaml

+20-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@ metadata:
99
pipelinesascode.tekton.dev/cancel-in-progress: "true"
1010
pipelinesascode.tekton.dev/max-keep-runs: "3"
1111
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch
12-
== "release-v1.5.x"
12+
== "release-v1.5.x" &&
13+
(
14+
".tekton/rhtap-task-runner-1-5-pull-request.yaml".pathChanged() ||
15+
"Dockerfile".pathChanged() ||
16+
"rhtap/***".pathChanged() ||
17+
"tools/***".pathChanged()
18+
)
1319
creationTimestamp: null
1420
labels:
1521
appstudio.openshift.io/application: rhtap-task-runner-1-5
@@ -31,6 +37,17 @@ spec:
3137
value: Dockerfile
3238
- name: path-context
3339
value: .
40+
- name: hermetic
41+
value: "true"
42+
- name: prefetch-input
43+
value: |
44+
[
45+
{"type": "gomod", "path": "tools/syft"},
46+
{"type": "gomod", "path": "tools/yq"},
47+
{"type": "rpm", "path": "tools/rpm-manifests"}
48+
]
49+
- name: build-source-image
50+
value: "true"
3451
pipelineSpec:
3552
description: |
3653
This pipeline is ideal for building container images from a Containerfile while maintaining trust after pipeline customization.
@@ -172,6 +189,8 @@ spec:
172189
params:
173190
- name: input
174191
value: $(params.prefetch-input)
192+
- name: dev-package-managers
193+
value: "true"
175194
- name: SOURCE_ARTIFACT
176195
value: $(tasks.clone-repository.results.SOURCE_ARTIFACT)
177196
- name: ociStorage

.tekton/rhtap-task-runner-1-5-push.yaml

+20-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ metadata:
88
pipelinesascode.tekton.dev/cancel-in-progress: "false"
99
pipelinesascode.tekton.dev/max-keep-runs: "3"
1010
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch
11-
== "release-v1.5.x"
11+
== "release-v1.5.x" &&
12+
(
13+
".tekton/rhtap-task-runner-1-5-push.yaml".pathChanged() ||
14+
"Dockerfile".pathChanged() ||
15+
"rhtap/***".pathChanged() ||
16+
"tools/***".pathChanged()
17+
)
1218
creationTimestamp: null
1319
labels:
1420
appstudio.openshift.io/application: rhtap-task-runner-1-5
@@ -28,6 +34,17 @@ spec:
2834
value: Dockerfile
2935
- name: path-context
3036
value: .
37+
- name: hermetic
38+
value: "true"
39+
- name: prefetch-input
40+
value: |
41+
[
42+
{"type": "gomod", "path": "tools/syft"},
43+
{"type": "gomod", "path": "tools/yq"},
44+
{"type": "rpm", "path": "tools/rpm-manifests"}
45+
]
46+
- name: build-source-image
47+
value: "true"
3148
pipelineSpec:
3249
description: |
3350
This pipeline is ideal for building container images from a Containerfile while maintaining trust after pipeline customization.
@@ -169,6 +186,8 @@ spec:
169186
params:
170187
- name: input
171188
value: $(params.prefetch-input)
189+
- name: dev-package-managers
190+
value: "true"
172191
- name: SOURCE_ARTIFACT
173192
value: $(tasks.clone-repository.results.SOURCE_ARTIFACT)
174193
- name: ociStorage

0 commit comments

Comments
 (0)