@@ -2,60 +2,32 @@ apiVersion: tekton.dev/v1
2
2
kind : PipelineRun
3
3
metadata :
4
4
annotations :
5
- build.appstudio.openshift.io/repo : https://github.com/openshift/lightspeed -service?rev={{revision}}
6
- build.appstudio.redhat.com/commit_sha : " {{revision}}"
7
- build.appstudio.redhat.com/target_branch : " {{target_branch}}"
5
+ build.appstudio.openshift.io/repo : https://github.com/ansible/ansible-chatbot -service?rev={{revision}}
6
+ build.appstudio.redhat.com/commit_sha : ' {{revision}}'
7
+ build.appstudio.redhat.com/target_branch : ' {{target_branch}}'
8
8
pipelinesascode.tekton.dev/max-keep-runs : " 3"
9
- pipelinesascode.tekton.dev/on-cel-expression : " event == \ " push\ " && \n target_branch == \ " main\"\n "
9
+ pipelinesascode.tekton.dev/on-cel-expression : event == "push" && target_branch == "main"
10
10
build.appstudio.openshift.io/build-nudge-files : |
11
11
.*Dockerfile.*, bundle/manifests/lightspeed-operator.clusterserviceversion.yaml, config/default/kustomization.yaml, lightspeed-catalog-4.15/index.yaml, lightspeed-catalog-4.16/index.yaml
12
12
creationTimestamp : null
13
13
labels :
14
- appstudio.openshift.io/application : ols
15
- appstudio.openshift.io/component : lightspeed -service
14
+ appstudio.openshift.io/application : ansible-chatbot-service
15
+ appstudio.openshift.io/component : ansible-chatbot -service
16
16
pipelines.appstudio.openshift.io/type : build
17
- name : lightspeed -service-on-push
18
- namespace : crt-nshift -lightspeed-tenant
17
+ name : ansible-chatbot -service-on-push
18
+ namespace : ansible -lightspeed-tenant
19
19
spec :
20
20
params :
21
21
- name : dockerfile
22
22
value : Containerfile
23
23
- name : git-url
24
24
value : " {{source_url}}"
25
25
- name : output-image
26
- value : quay.io/redhat-user-workloads/crt-nshift-lightspeed-tenant/ols/lightspeed -service:{{revision}}
26
+ value : quay.io/ansible/ansible-chatbot -service:{{revision}}
27
27
- name : path-context
28
28
value : .
29
29
- name : revision
30
30
value : " {{revision}}"
31
- - name : build-source-image
32
- value : " true"
33
- - name : prefetch-input
34
- value : ' [{"type": "rpm", "path": "."}, {"type": "pip", "path": ".", "allow_binary": "true"}]'
35
- - name : hermetic
36
- value : " true"
37
- taskRunSpecs :
38
- - pipelineTaskName : build-source-image
39
- computeResources :
40
- requests :
41
- cpu : ' 1'
42
- memory : 1Gi
43
- limits :
44
- memory : 4Gi
45
- - pipelineTaskName : clair-scan
46
- computeResources :
47
- requests :
48
- cpu : ' 1'
49
- memory : 1Gi
50
- limits :
51
- memory : 8Gi
52
- - pipelineTaskName : ecosystem-cert-preflight-checks
53
- computeResources :
54
- requests :
55
- cpu : ' 1'
56
- memory : 1Gi
57
- limits :
58
- memory : 8Gi
59
31
pipelineSpec :
60
32
finally :
61
33
- name : show-sbom
67
39
- name : name
68
40
value : show-sbom
69
41
- name : bundle
70
- value : quay.io/konflux-ci/ tekton-catalog/task-show-sbom:0.1@sha256:9bfc6b99ef038800fe131d7b45ff3cd4da3a415dd536f7c657b3527b01c4a13b
42
+ value : quay.io/redhat-appstudio- tekton-catalog/task-show-sbom:0.1@sha256:8e0f8cad75e6f674d72a874385b69c4651afc0c9dcc59feffe0d85844687d852
71
43
- name : kind
72
44
value : task
73
45
resolver : bundles
93
65
workspaces :
94
66
- name : workspace
95
67
workspace : workspace
68
+ - name : slack-notification-when-failed
69
+ params :
70
+ - name : message
71
+ value : Konflux https://console.redhat.com/application-pipeline/workspaces/ansible-lightspeed/applications/ansible-chatbot-service/pipelineruns/$(context.pipelineRun.name) status=$(tasks.status)
72
+ - name : secret-name
73
+ value : slack-webhook-urls
74
+ - name : key-name
75
+ value : team-wisdom-eng
76
+ taskRef :
77
+ params :
78
+ - name : bundle
79
+ value : quay.io/redhat-appstudio-tekton-catalog/task-slack-webhook-notification:0.1
80
+ - name : name
81
+ value : slack-webhook-notification
82
+ - name : kind
83
+ value : Task
84
+ resolver : bundles
85
+ when :
86
+ - input : $(tasks.status)
87
+ operator : in
88
+ values : [ "Failed" ]
89
+ - name : slack-notification
90
+ params :
91
+ - name : message
92
+ value : Konflux https://console.redhat.com/application-pipeline/workspaces/ansible-lightspeed/applications/ansible-chatbot-service/pipelineruns/$(context.pipelineRun.name) status=$(tasks.status)
93
+ - name : secret-name
94
+ value : slack-webhook-urls
95
+ - name : key-name
96
+ value : wisdom-cicd-events
97
+ taskRef :
98
+ params :
99
+ - name : bundle
100
+ value : quay.io/redhat-appstudio-tekton-catalog/task-slack-webhook-notification:0.1
101
+ - name : name
102
+ value : slack-webhook-notification
103
+ - name : kind
104
+ value : Task
105
+ resolver : bundles
96
106
params :
97
107
- description : Source Repository URL
98
108
name : git-url
@@ -139,10 +149,6 @@ spec:
139
149
description : Build a source image.
140
150
name : build-source-image
141
151
type : string
142
- - default : []
143
- description : Array of --build-arg values ("arg=value" strings) for buildah
144
- name : build-args
145
- type : array
146
152
- default : " "
147
153
description : Path to a file with build arguments for buildah, see https://www.mankier.com/1/buildah-build#--build-arg-file
148
154
name : build-args-file
@@ -177,7 +183,7 @@ spec:
177
183
- name : name
178
184
value : init
179
185
- name : bundle
180
- value : quay.io/konflux-ci/ tekton-catalog/task-init:0.2@sha256:092c113b614f6551113f17605ae9cb7e822aa704d07f0e37ed209da23ce392cc
186
+ value : quay.io/redhat-appstudio- tekton-catalog/task-init:0.2@sha256:596b7c11572bb94eb67d9ffb4375068426e2a8249ff2792ce04ad2a4bc593a63
181
187
- name : kind
182
188
value : task
183
189
resolver : bundles
@@ -194,7 +200,7 @@ spec:
194
200
- name : name
195
201
value : git-clone
196
202
- name : bundle
197
- value : quay.io/konflux-ci/ tekton-catalog/task-git-clone:0.1@sha256:2cccdf8729ad4d5adf65e8b66464f8efa1e1c87ba16d343b4a6c621a2a40f7e1
203
+ value : quay.io/redhat-appstudio- tekton-catalog/task-git-clone:0.1@sha256:9e6c4db5a666ea0e1e747e03d63f46e5617a6b9852c26871f9d50891d778dfa2
198
204
- name : kind
199
205
value : task
200
206
resolver : bundles
@@ -221,7 +227,7 @@ spec:
221
227
- name : name
222
228
value : prefetch-dependencies
223
229
- name : bundle
224
- value : quay.io/konflux-ci/ tekton-catalog/task-prefetch-dependencies:0.1@sha256:fe7234e3824d1e65d6a7aac352e7a6bbce623d90d8d7da9aceeee108ad2c61be
230
+ value : quay.io/redhat-appstudio- tekton-catalog/task-prefetch-dependencies:0.1@sha256:eea8bd511343b4014dab46a77e7215510f7a63820937d1267c6dc428e10ffbe4
225
231
- name : kind
226
232
value : task
227
233
resolver : bundles
@@ -230,6 +236,10 @@ spec:
230
236
operator : notin
231
237
values :
232
238
- " "
239
+ - input : $(params.hermetic)
240
+ operator : in
241
+ values :
242
+ - " true"
233
243
workspaces :
234
244
- name : source
235
245
workspace : workspace
@@ -251,19 +261,20 @@ spec:
251
261
value : $(params.image-expires-after)
252
262
- name : COMMIT_SHA
253
263
value : $(tasks.clone-repository.results.commit)
254
- - name : BUILD_ARGS
255
- value :
256
- - $(params.build-args[*])
257
264
- name : BUILD_ARGS_FILE
258
- value : build.args
265
+ value : $(params.build-args-file)
266
+ - name : TARGET_STAGE
267
+ value : production
268
+ - name : BUILD_ARGS
269
+ value : [ "IMAGE_TAGS=latest 1.0.$(tasks.git-metadata.results.commit-timestamp)", "GIT_COMMIT=$(tasks.clone-repository.results.commit)" ]
259
270
runAfter :
260
271
- prefetch-dependencies
261
272
taskRef :
262
273
params :
263
274
- name : name
264
275
value : buildah-10gb
265
276
- name : bundle
266
- value : quay.io/konflux-ci/ tekton-catalog/task-buildah-10gb:0.2@sha256:fe86b7c7e746f0d0a5ee6791d29eae5569138a5d31df42fadebcb6a9d2722ccb
277
+ value : quay.io/redhat-appstudio- tekton-catalog/task-buildah-10gb:0.2
267
278
- name : kind
268
279
value : task
269
280
resolver : bundles
@@ -275,6 +286,42 @@ spec:
275
286
workspaces :
276
287
- name : source
277
288
workspace : workspace
289
+ - name : apply-tags
290
+ params :
291
+ - name : IMAGE
292
+ value : $(tasks.build-container.results.IMAGE_URL)
293
+ - name : ADDITIONAL_TAGS
294
+ value : [ "latest", "1.0.$(tasks.git-metadata.results.commit-timestamp)" ]
295
+ runAfter :
296
+ - build-container
297
+ taskRef :
298
+ params :
299
+ - name : name
300
+ value : apply-tags
301
+ - name : bundle
302
+ value : quay.io/redhat-appstudio-tekton-catalog/task-apply-tags:0.1
303
+ - name : kind
304
+ value : task
305
+ resolver : bundles
306
+ - name : git-metadata
307
+ runAfter :
308
+ - clone-repository
309
+ workspaces :
310
+ - name : source
311
+ workspace : workspace
312
+ taskSpec :
313
+ workspaces :
314
+ - name : source
315
+ steps :
316
+ - name : get-commit-timestamp
317
+ image : alpine/git
318
+ script : |
319
+ #!/bin/sh
320
+ set -euo pipefail
321
+ cd "$(workspaces.source.path)/source"
322
+ echo -n $(date -d @$(git log -1 --format=%at) "+%Y%m%d%H%M") > $(results.commit-timestamp.path)
323
+ results :
324
+ - name : commit-timestamp
278
325
- name : build-source-image
279
326
params :
280
327
- name : BINARY_IMAGE
@@ -286,7 +333,7 @@ spec:
286
333
- name : name
287
334
value : source-build
288
335
- name : bundle
289
- value : quay.io/konflux-ci/ tekton-catalog/task-source-build:0.1@sha256:21cb5ebaff7a9216903cf78933dc4ec4dd6283a52636b16590a5f52ceb278269
336
+ value : quay.io/redhat-appstudio- tekton-catalog/task-source-build:0.1@sha256:14b91ad9124b722b44222685013faaf9af8ac5b66030d9abeb1c61da3c118cdd
290
337
- name : kind
291
338
value : task
292
339
resolver : bundles
@@ -315,7 +362,7 @@ spec:
315
362
- name : name
316
363
value : deprecated-image-check
317
364
- name : bundle
318
- value : quay.io/konflux-ci/ tekton-catalog/task-deprecated-image-check:0.4@sha256:b4f9599f5770ea2e6e4d031224ccc932164c1ecde7f85f68e16e99c98d754003
365
+ value : quay.io/redhat-appstudio- tekton-catalog/task-deprecated-image-check:0.4@sha256:1f17ef7ab9859d6e2215ef2ed532ebc15e516ba09226b8cae77907a7a8b7cedd
319
366
- name : kind
320
367
value : task
321
368
resolver : bundles
@@ -337,7 +384,7 @@ spec:
337
384
- name : name
338
385
value : clair-scan
339
386
- name : bundle
340
- value : quay.io/konflux-ci/ tekton-catalog/task-clair-scan:0.2 @sha256:28fee4bf5da87f2388c973d9336086749cad8436003f9a514e22ac99735e056b
387
+ value : quay.io/redhat-appstudio- tekton-catalog/task-clair-scan:0.1 @sha256:b8c51079ea1110e1095c229e184e3c340120ba211a63a200e836706f5a35361c
341
388
- name : kind
342
389
value : task
343
390
resolver : bundles
@@ -357,7 +404,7 @@ spec:
357
404
- name : name
358
405
value : ecosystem-cert-preflight-checks
359
406
- name : bundle
360
- value : quay.io/konflux-ci/ tekton-catalog/task-ecosystem-cert-preflight-checks:0.1@sha256:5131cce0f93d0b728c7bcc0d6cee4c61d4c9f67c6d619c627e41e3c9775b497d
407
+ value : quay.io/redhat-appstudio- tekton-catalog/task-ecosystem-cert-preflight-checks:0.1@sha256:fc2cda064580364bb80c3ad6f438002de0033963fc33985d01ad249346b93433
361
408
- name : kind
362
409
value : task
363
410
resolver : bundles
@@ -374,7 +421,7 @@ spec:
374
421
- name : name
375
422
value : sast-snyk-check
376
423
- name : bundle
377
- value : quay.io/konflux-ci/ tekton-catalog/task-sast-snyk-check:0.2@sha256:c1ea706405f9ae146e31baef4abfea49b1e855a75bfc44c33eb0eb29516831b3
424
+ value : quay.io/redhat-appstudio- tekton-catalog/task-sast-snyk-check:0.2@sha256:479bd0d9aaa7b377ff5f8ad93168d44807455646f2161688637cb2e4e0b990d9
378
425
- name : kind
379
426
value : task
380
427
resolver : bundles
@@ -404,7 +451,7 @@ spec:
404
451
- name : name
405
452
value : clamav-scan
406
453
- name : bundle
407
- value : quay.io/konflux-ci/tekton-catalog/task-clamav-scan:0.1@sha256:1e29eebe916b81b7100138d62db0e03e22d03657274d37041c59cbaca5fdbf7d
454
+ value : quay.io/konflux-ci/tekton-catalog/task-clamav-scan:0.1@sha256:7bb17b937c9342f305468e8a6d0a22493e3ecde58977bd2ffc8b50e2fa234d58
408
455
- name : kind
409
456
value : task
410
457
resolver : bundles
@@ -413,21 +460,6 @@ spec:
413
460
operator : in
414
461
values :
415
462
- " false"
416
- - name : apply-tags
417
- params :
418
- - name : IMAGE
419
- value : $(tasks.build-container.results.IMAGE_URL)
420
- runAfter :
421
- - build-container
422
- taskRef :
423
- params :
424
- - name : name
425
- value : apply-tags
426
- - name : bundle
427
- value : quay.io/konflux-ci/tekton-catalog/task-apply-tags:0.1@sha256:f485e250fb060060892b633c495a3d7e38de1ec105ae1be48608b0401530ab2c
428
- - name : kind
429
- value : task
430
- resolver : bundles
431
463
workspaces :
432
464
- name : workspace
433
465
- name : git-auth
0 commit comments