Skip to content

Commit d0f4c16

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

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.tekton/rapidast-integration-tests.yaml

Lines changed: 3 additions & 6 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
31
apiVersion: tekton.dev/v1
4-
kind: Pipeline
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)