Skip to content

Commit fa08903

Browse files
authored
Merge pull request #10 from MartinBasti/fix-generated-PLR-name
fix(tekton-PLR): add repo prefix to name
2 parents b0f3849 + 5edbfda commit fa08903

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.tekton/build_and_trigger.yaml

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
apiVersion: tekton.dev/v1beta1
22
kind: PipelineRun
33
metadata:
4-
name: build-and-trigger
4+
name: clair-in-ci-db-build-and-trigger
55
annotations:
66
pipelinesascode.tekton.dev/max-keep-runs: "3"
77
pipelinesascode.tekton.dev/on-cel-expression: |
88
event == "push" || event == "pull_request"
99
pipelinesascode.tekton.dev/task: "[buildah, git-clone]"
1010
spec:
11+
timeouts:
12+
pipeline: "2h"
1113
params:
1214
- name: output-image
1315
value: quay.io/redhat-appstudio/clair-in-ci:to_test
@@ -36,6 +38,9 @@ spec:
3638
workspaces:
3739
- name: output
3840
workspace: workspace
41+
computeResources:
42+
requests:
43+
cpu: 100mi
3944
taskRef:
4045
name: git-clone
4146
params:
@@ -73,9 +78,13 @@ spec:
7378
echo -n "PR-$(params.revision)" | tee $(results.image_tag.path)
7479
fi
7580
- name: build-image
81+
timeout: "0"
7682
workspaces:
7783
- name: source
7884
workspace: workspace
85+
computeResources:
86+
requests:
87+
cpu: 1
7988
params:
8089
- name: IMAGE
8190
value: "quay.io/redhat-appstudio/clair-in-ci:$(tasks.calculate-tag.results.image_tag)"
@@ -89,6 +98,9 @@ spec:
8998
name: buildah
9099
kind: ClusterTask
91100
- name: trigger-tests-and-push
101+
computeResources:
102+
requests:
103+
cpu: 100mi
92104
params:
93105
- name: revision
94106
value: "{{ revision }}"

0 commit comments

Comments
 (0)