-
Notifications
You must be signed in to change notification settings - Fork 32
/
noted.yaml
75 lines (75 loc) · 1.77 KB
/
noted.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
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
name: quarkus-backend-gitppp
namespace: bt-demo
labels:
app.kubernetes.io/instance: quarkus-backend-gitppp
pipeline.openshift.io/runtime: java
pipeline.openshift.io/type: kubernetes
spec:
params:
- default: quarkus-backend-gitppp
name: APP_NAME
type: string
- default: 'https://github.com/openshift-for-developers/quarkus-backend.git'
name: GIT_REPO
type: string
- default: main
name: GIT_REVISION
type: string
- default: .
name: IMAGE_NAME
type: string
- default: .
name: PATH_CONTEXT
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)
runAfter:
- fetch-repository
taskRef:
kind: ClusterTask
name: s2i-java-11
workspaces:
- name: source
workspace: workspace
- name: deploy
params:
- name: SCRIPT
value: kubectl $@
- name: ARGS
value:
- rollout
- status
- deploy/$(params.APP_NAME)
runAfter:
- build
taskRef:
kind: ClusterTask
name: openshift-client
workspaces:
- name: workspace