Skip to content

Commit 894c006

Browse files
CI: update Tekton pipelines
- Pull pipelines use odh-pr tag - Push pipelines use odh-stable tag - Target branch: main
1 parent b76e65b commit 894c006

2 files changed

Lines changed: 105 additions & 0 deletions

File tree

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
apiVersion: tekton.dev/v1
2+
kind: PipelineRun
3+
metadata:
4+
annotations:
5+
build.appstudio.openshift.io/repo: https://github.com/opendatahub-io/distributed-workloads?rev={{revision}}
6+
build.appstudio.redhat.com/commit_sha: '{{revision}}'
7+
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
8+
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
9+
pipelinesascode.tekton.dev/on-comment: "^/build-konflux"
10+
pipelinesascode.tekton.dev/cancel-in-progress: "true"
11+
pipelinesascode.tekton.dev/max-keep-runs: "3"
12+
pipelinesascode.tekton.dev/on-cel-expression: |
13+
event == "pull_request"
14+
&& target_branch == "main"
15+
&& ( "images/runtime/training/py312-cuda130-torch210-openmpi41/**".pathChanged()
16+
|| ".tekton/odh-training-cuda130-torch210-py312-openmpi41-ci-on-pull-request.yaml".pathChanged() )
17+
creationTimestamp: null
18+
labels:
19+
appstudio.openshift.io/application: opendatahub-builds
20+
appstudio.openshift.io/component: odh-training-cuda130-torch210-py312-openmpi41-ci
21+
pipelines.appstudio.openshift.io/type: build
22+
name: odh-training-cuda130-torch210-py312-openmpi41-ci-on-pull-request
23+
namespace: open-data-hub-tenant
24+
spec:
25+
params:
26+
- name: git-url
27+
value: '{{source_url}}'
28+
- name: revision
29+
value: '{{revision}}'
30+
- name: output-image
31+
value: quay.io/opendatahub/odh-training-cuda130-torch210-py312-openmpi41:odh-pr
32+
- name: dockerfile
33+
value: Dockerfile
34+
- name: path-context
35+
value: images/runtime/training/py312-cuda130-torch210-openmpi41
36+
- name: pipeline-type
37+
value: pull-request
38+
- name: additional-tags
39+
value:
40+
- 'odh-pr-{{revision}}'
41+
pipelineRef:
42+
resolver: git
43+
params:
44+
- name: url
45+
value: https://github.com/opendatahub-io/odh-konflux-central.git
46+
- name: revision
47+
value: main
48+
- name: pathInRepo
49+
value: pipeline/multi-arch-container-build.yaml
50+
taskRunTemplate:
51+
serviceAccountName: build-pipeline-odh-training-cuda130-torch210-py312-openmpi41-ci
52+
workspaces:
53+
- name: git-auth
54+
secret:
55+
secretName: '{{ git_auth_secret }}'
56+
status: {}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
apiVersion: tekton.dev/v1
2+
kind: PipelineRun
3+
metadata:
4+
annotations:
5+
build.appstudio.openshift.io/repo: https://github.com/opendatahub-io/distributed-workloads?rev={{revision}}
6+
build.appstudio.redhat.com/commit_sha: '{{revision}}'
7+
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
8+
pipelinesascode.tekton.dev/cancel-in-progress: "false"
9+
pipelinesascode.tekton.dev/max-keep-runs: "3"
10+
pipelinesascode.tekton.dev/on-cel-expression: |
11+
event == "push"
12+
&& target_branch == "main"
13+
&& ( "images/runtime/training/py312-cuda130-torch210-openmpi41/**".pathChanged()
14+
|| ".tekton/odh-training-cuda130-torch210-py312-openmpi41-ci-on-push.yaml".pathChanged() )
15+
creationTimestamp: null
16+
labels:
17+
appstudio.openshift.io/application: opendatahub-builds
18+
appstudio.openshift.io/component: odh-training-cuda130-torch210-py312-openmpi41-ci
19+
pipelines.appstudio.openshift.io/type: build
20+
name: odh-training-cuda130-torch210-py312-openmpi41-ci-on-push
21+
namespace: open-data-hub-tenant
22+
spec:
23+
params:
24+
- name: git-url
25+
value: '{{source_url}}'
26+
- name: revision
27+
value: '{{revision}}'
28+
- name: output-image
29+
value: quay.io/opendatahub/odh-training-cuda130-torch210-py312-openmpi41:odh-stable
30+
- name: dockerfile
31+
value: Dockerfile
32+
- name: path-context
33+
value: images/runtime/training/py312-cuda130-torch210-openmpi41
34+
pipelineRef:
35+
resolver: git
36+
params:
37+
- name: url
38+
value: https://github.com/opendatahub-io/odh-konflux-central.git
39+
- name: revision
40+
value: main
41+
- name: pathInRepo
42+
value: pipeline/multi-arch-container-build.yaml
43+
taskRunTemplate:
44+
serviceAccountName: build-pipeline-odh-training-cuda130-torch210-py312-openmpi41-ci
45+
workspaces:
46+
- name: git-auth
47+
secret:
48+
secretName: '{{ git_auth_secret }}'
49+
status: {}

0 commit comments

Comments
 (0)