forked from sclorg/nodejs-ex
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathnode-pac.yaml
101 lines (101 loc) · 2.39 KB
/
node-pac.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
creationTimestamp: "2021-10-21T14:37:49Z"
generation: 1
labels:
app.kubernetes.io/instance: nodejs-ex-git
app.kubernetes.io/name: nodejs-ex-git
pipeline.openshift.io/runtime: nodejs
pipeline.openshift.io/runtime-version: 14-ubi7
pipeline.openshift.io/type: kubernetes
managedFields:
- apiVersion: tekton.dev/v1beta1
fieldsType: FieldsV1
fieldsV1:
f:metadata:
f:labels:
.: {}
f:app.kubernetes.io/instance: {}
f:app.kubernetes.io/name: {}
f:pipeline.openshift.io/runtime: {}
f:pipeline.openshift.io/runtime-version: {}
f:pipeline.openshift.io/type: {}
f:spec:
.: {}
f:params: {}
f:tasks: {}
f:workspaces: {}
manager: Mozilla
operation: Update
time: "2021-10-21T14:37:49Z"
name: nodejs-ex-git
namespace: nodejs
resourceVersion: "982089"
uid: 7c49a117-4d91-4b57-8bfa-2128a887c425
spec:
params:
- default: nodejs-ex-git
name: APP_NAME
type: string
- default: https://github.com/jchraibi/nodejs-ex.git
name: GIT_REPO
type: string
- default: master
name: GIT_REVISION
type: string
- default: image-registry.openshift-image-registry.svc:5000/nodejs/nodejs-ex-git
name: IMAGE_NAME
type: string
- default: .
name: PATH_CONTEXT
type: string
- default: 14-ubi7
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-nodejs
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