Skip to content

Commit 7c37027

Browse files
committed
feat: add customized tekton pipeline to build image from tag
- image should store in quay.io/opendatahub and tagged with the same git tag: vx.y.z matching upstream llm-d-router release - to retrigger build in case build failure, force push tag, on-command wont work in this case without specify tag name Signed-off-by: Wen Zhou <wenzhou@redhat.com>
1 parent 6831d5f commit 7c37027

2 files changed

Lines changed: 92 additions & 0 deletions

File tree

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# This is for the team internal build image for Kserve to integrate
2+
# Nothing to do with DevOps konflux, but reuse the same setup
3+
apiVersion: tekton.dev/v1
4+
kind: PipelineRun
5+
metadata:
6+
annotations:
7+
build.appstudio.openshift.io/repo: https://github.com/opendatahub-io/llm-d-router?rev={{revision}}
8+
build.appstudio.redhat.com/commit_sha: '{{revision}}'
9+
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
10+
pipelinesascode.tekton.dev/cancel-in-progress: "false"
11+
pipelinesascode.tekton.dev/max-keep-runs: "3"
12+
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch.startsWith("refs/tags/v")
13+
labels:
14+
appstudio.openshift.io/application: opendatahub-builds
15+
appstudio.openshift.io/component: odh-llm-d-router-disagg-sidecar-ci
16+
pipelines.appstudio.openshift.io/type: build
17+
name: odh-llm-d-router-disagg-sidecar-on-tag
18+
namespace: open-data-hub-tenant
19+
spec:
20+
params:
21+
- name: git-url
22+
value: '{{source_url}}'
23+
- name: revision
24+
value: '{{revision}}'
25+
- name: output-image
26+
value: quay.io/opendatahub/odh-llm-d-router-disagg-sidecar:{{git_tag}}
27+
- name: dockerfile
28+
value: Dockerfile.sidecar.konflux
29+
- name: path-context
30+
value: .
31+
pipelineRef:
32+
resolver: git
33+
params:
34+
- name: url
35+
value: https://github.com/opendatahub-io/odh-konflux-central.git
36+
- name: revision
37+
value: main
38+
- name: pathInRepo
39+
value: pipeline/multi-arch-container-build.yaml
40+
taskRunTemplate:
41+
serviceAccountName: build-pipeline-odh-llm-d-router-disagg-sidecar-ci
42+
workspaces:
43+
- name: git-auth
44+
secret:
45+
secretName: '{{ git_auth_secret }}'
46+
status: {}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# This is for the team internal build image for Kserve to integrate
2+
# Nothing to do with DevOps konflux, but reuse the same setup
3+
apiVersion: tekton.dev/v1
4+
kind: PipelineRun
5+
metadata:
6+
annotations:
7+
build.appstudio.openshift.io/repo: https://github.com/opendatahub-io/llm-d-router?rev={{revision}}
8+
build.appstudio.redhat.com/commit_sha: '{{revision}}'
9+
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
10+
pipelinesascode.tekton.dev/cancel-in-progress: "false"
11+
pipelinesascode.tekton.dev/max-keep-runs: "3"
12+
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch.startsWith("refs/tags/v")
13+
labels:
14+
appstudio.openshift.io/application: opendatahub-builds
15+
appstudio.openshift.io/component: odh-llm-d-router-endpoint-picker-ci
16+
pipelines.appstudio.openshift.io/type: build
17+
name: odh-llm-d-router-endpoint-picker-on-tag
18+
namespace: open-data-hub-tenant
19+
spec:
20+
params:
21+
- name: git-url
22+
value: '{{source_url}}'
23+
- name: revision
24+
value: '{{revision}}'
25+
- name: output-image
26+
value: quay.io/opendatahub/odh-llm-d-router-endpoint-picker:{{git_tag}}
27+
- name: dockerfile
28+
value: Dockerfile.epp.konflux
29+
- name: path-context
30+
value: .
31+
pipelineRef:
32+
resolver: git
33+
params:
34+
- name: url
35+
value: https://github.com/opendatahub-io/odh-konflux-central.git
36+
- name: revision
37+
value: main
38+
- name: pathInRepo
39+
value: pipeline/multi-arch-container-build.yaml
40+
taskRunTemplate:
41+
serviceAccountName: build-pipeline-odh-llm-d-router-endpoint-picker-ci
42+
workspaces:
43+
- name: git-auth
44+
secret:
45+
secretName: '{{ git_auth_secret }}'
46+
status: {}

0 commit comments

Comments
 (0)