-
Notifications
You must be signed in to change notification settings - Fork 576
/
cache-volume.yaml
41 lines (41 loc) · 1.02 KB
/
cache-volume.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
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: cache-volume-ws-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 500Mi
---
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
name: cache-volume-pipelinerun
labels:
app.kubernetes.io/description: A PipelineRun configured to cache build artifacts in a volume.
spec:
pipelineRef:
name: buildpacks
params:
- name: BUILDER_IMAGE
value: docker.io/cnbs/sample-builder:bionic@sha256:6c03dd604503b59820fd15adbc65c0a077a47e31d404a3dcad190f3179e920b5
- name: TRUST_BUILDER
value: "false"
- name: APP_IMAGE
value: <IMAGE_NAME>
- name: SOURCE_URL
value: https://github.com/buildpacks/samples
- name: SOURCE_SUBPATH
value: apps/ruby-bundler
workspaces:
- name: source-ws
subPath: source
persistentVolumeClaim:
claimName: cache-volume-ws-pvc
- name: cache-ws
subPath: cache
persistentVolumeClaim:
claimName: cache-volume-ws-pvc