Skip to content

Commit f4db05d

Browse files
committed
Changed to pipelinerun
1 parent 9d36fe7 commit f4db05d

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.tekton/rapidast-integration-tests.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
# An example Pipeline to use in an IntegrationTest, this is for a component named "test-component"
2-
# which would be built an a separate build pipeline
3-
apiVersion: tekton.dev/v1
4-
kind: Pipeline
1+
apiVersion: tekton.dev/v1beta1
2+
kind: PipelineRun
53
metadata:
64
name: rapidast-integration-test
5+
namespace: multiarch-tuning-ope-tenant
76
spec:
87
params:
98
# this SNAPSHOT should be produced by the build pipeline and contain the containerImage we want to test with rapidast
109
- name: SNAPSHOT
1110
type: string
12-
# - name: revision
13-
# value: '{{revision}}'
1411
tasks:
1512
# we need an clean environment where we have permission to deploy k8s resources
1613
# this env will only provide namespace-admin, not cluster-admin. For components
@@ -123,7 +120,7 @@ spec:
123120
value: https://github.com/openshift/multiarch-tuning-operator
124121
# TODO change revision after merge
125122
- name: revision
126-
value: main
123+
value: "$(context.pipelineRun.annotations['pipelinesascode.tekton.dev/sha'])"
127124
- name: pathInRepo
128125
value: .tekton/rapidast-check.yaml
129126
params:

0 commit comments

Comments
 (0)