-
Notifications
You must be signed in to change notification settings - Fork 113
/
Copy pathbuildstrategy_buildpacks-v3-heroku_namespaced_cr.yaml
59 lines (59 loc) · 1.36 KB
/
buildstrategy_buildpacks-v3-heroku_namespaced_cr.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
---
apiVersion: shipwright.io/v1alpha1
kind: BuildStrategy
metadata:
name: buildpacks-v3-heroku
spec:
buildSteps:
- name: prepare
image: heroku/buildpacks:18
securityContext:
runAsUser: 0
capabilities:
add:
- CHOWN
command:
- /bin/bash
args:
- -c
- >
chown -R "1000:1000" /workspace/source &&
chown -R "1000:1000" /tekton/home &&
chown -R "1000:1000" /cache &&
chown -R "1000:1000" /layers
resources:
limits:
cpu: 500m
memory: 1Gi
requests:
cpu: 250m
memory: 65Mi
volumeMounts:
- name: cache-dir
mountPath: /cache
- name: layers-dir
mountPath: /layers
- name: build-and-push
image: heroku/buildpacks:18
securityContext:
runAsUser: 1000
runAsGroup: 1000
command:
- /cnb/lifecycle/creator
args:
- -app=/workspace/source/$(build.source.contextDir)
- -cache-dir=/cache
- -layers=/layers
- $(build.output.image)
resources:
limits:
cpu: 500m
memory: 1Gi
requests:
cpu: 250m
memory: 65Mi
volumeMounts:
- name: cache-dir
mountPath: /cache
- name: layers-dir
mountPath: /layers