-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpipeline-kn-deploy.yaml
52 lines (52 loc) · 1.39 KB
/
pipeline-kn-deploy.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
apiVersion: tekton.dev/v1alpha1
kind: Pipeline
metadata:
name: rhd-tutorial-kn-deploy
spec:
resources:
- name: app-git
type: git
- name: app-image
type: image
params:
- name: serviceName
description: The name of the Knative service
- name: applicationSrcDir
description: The source directory of the application within the source repository
tasks:
- name: build
taskRef:
name: build-app
params:
- name: contextDir
value: "$(params.applicationSrcDir)"
# if you have different repository manager update the value below
# if don't wish to use nexus or repo manager then comment the name/value below
- name: mavenMirrorUrl
value: "http://nexus.rhd-workshop-infra:8081/nexus/content/groups/public"
- name: dockerFile
value: "Dockerfile"
resources:
inputs:
- name: source
resource: app-git
outputs:
- name: builtImage
resource: app-image
- name: deploy
taskRef:
name: kn
runAfter:
- build
params:
- name: ARGS
value:
- "service"
- "create"
- "recommendation"
- "--force"
- "--image=$(inputs.resources.image.url)"
resources:
inputs:
- name: image
resource: app-image