-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathobject-detection-rest-pipeline.yaml
77 lines (77 loc) · 1.84 KB
/
object-detection-rest-pipeline.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
labels:
app.kubernetes.io/instance: object-detection-rest
app.kubernetes.io/name: object-detection-rest
pipeline.openshift.io/runtime: python
pipeline.openshift.io/runtime-version: 3.9-ubi8
pipeline.openshift.io/type: kubernetes
name: object-detection-rest
namespace: user1-rhods-project
spec:
params:
- default: object-detection-rest
name: APP_NAME
type: string
- default: https://gitea.apps.cluster-nmstv.sandbox549.opentlc.com/lab-user/arc-model.git
name: GIT_REPO
type: string
- default: ""
name: GIT_REVISION
type: string
- default: image-registry.openshift-image-registry.svc:5000/user1-rhods-project/object-detection-rest
name: IMAGE_NAME
type: string
- default: .
name: PATH_CONTEXT
type: string
- default: 3.9-ubi8
name: VERSION
type: string
tasks:
- name: fetch-repository
params:
- name: url
value: $(params.GIT_REPO)
- name: revision
value: $(params.GIT_REVISION)
- name: subdirectory
value: ""
- name: deleteExisting
value: "true"
taskRef:
kind: ClusterTask
name: git-clone
workspaces:
- name: output
workspace: workspace
- name: build
params:
- name: IMAGE
value: $(params.IMAGE_NAME)
- name: TLSVERIFY
value: "false"
- name: PATH_CONTEXT
value: $(params.PATH_CONTEXT)
- name: VERSION
value: $(params.VERSION)
runAfter:
- fetch-repository
taskRef:
kind: ClusterTask
name: s2i-python
workspaces:
- name: source
workspace: workspace
- name: deploy
params:
- name: SCRIPT
value: oc rollout status deploy/$(params.APP_NAME)
runAfter:
- build
taskRef:
kind: ClusterTask
name: openshift-client
workspaces:
- name: workspace