-
Notifications
You must be signed in to change notification settings - Fork 10
/
cnb-spring-api-demo.yml
54 lines (51 loc) · 1000 Bytes
/
cnb-spring-api-demo.yml
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
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: dockerhub-service
secrets:
- name: dockercreds
---
apiVersion: tekton.dev/v1alpha1
kind: PipelineResource
metadata:
name: spring-api-git
spec:
type: git
params:
- name: revision
value: main
- name: url
value: https://github.com/BrianMMcClain/spring-boot-api-demo
---
apiVersion: tekton.dev/v1alpha1
kind: PipelineResource
metadata:
name: spring-api-tekton-demo
spec:
type: image
params:
- name: url
value: <DOCKER_USERNAME>/spring-api-tekton-demo
---
apiVersion: tekton.dev/v1alpha1
kind: TaskRun
metadata:
name: build-spring-api-with-buildpacks
spec:
serviceAccountName: dockerhub-service
taskRef:
name: buildpacks-v3
inputs:
resources:
- name: source
resourceRef:
name: spring-api-git
params:
- name: BUILDER_IMAGE
value: cloudfoundry/cnb:bionic
outputs:
resources:
- name: image
resourceRef:
name: spring-api-tekton-demo