forked from shipwright-io/build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildstrategy_buildpacks-v3-heroku_cr.yaml
57 lines (54 loc) · 1.28 KB
/
buildstrategy_buildpacks-v3-heroku_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
---
apiVersion: shipwright.io/v1alpha1
kind: ClusterBuildStrategy
metadata:
name: buildpacks-v3-heroku
spec:
buildSteps:
- name: prepare
image: heroku/buildpacks:18
securityContext:
runAsUser: 0
capabilities:
add:
- CHOWN
command:
- chown
args:
- -R
- "1000:1000"
- /tekton/home
resources:
limits:
cpu: 500m
memory: 1Gi
requests:
cpu: 250m
memory: 65Mi
- name: build-and-push
image: heroku/buildpacks:18
securityContext:
runAsUser: 1000
runAsGroup: 1000
command:
- /bin/bash
args:
- -c
- |
set -euo pipefail
mkdir /tmp/cache /tmp/layers
/cnb/lifecycle/creator \
'-app=$(params.shp-source-context)' \
-cache-dir=/tmp/cache \
-layers=/tmp/layers \
-report=/tmp/report.toml \
'$(params.shp-output-image)'
# Store the image digest
grep digest /tmp/report.toml | tr -d ' \"\n' | sed s/digest=// > "$(results.shp-image-digest.path)"
resources:
limits:
cpu: 500m
memory: 1Gi
requests:
cpu: 250m
memory: 65Mi