fix: use Tekton compute resources #6
|
|
@ -72,7 +72,7 @@ spec:
|
|||
rm -f /work/askpass
|
||||
- name: build-layer
|
||||
image: node:22-alpine
|
||||
resources:
|
||||
computeResources:
|
||||
requests:
|
||||
memory: 256Mi
|
||||
limits:
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ spec:
|
|||
rm -f /work/askpass
|
||||
- name: build-layer
|
||||
image: node:22-alpine
|
||||
resources:
|
||||
computeResources:
|
||||
requests:
|
||||
memory: 256Mi
|
||||
limits:
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ for value in \
|
|||
'npm install --ignore-scripts --no-audit --no-fund --package-lock=false' \
|
||||
'memory: 256Mi' \
|
||||
'memory: 512Mi' \
|
||||
'computeResources:' \
|
||||
'npm run build' \
|
||||
'npm prune --omit=dev --ignore-scripts --no-audit --no-fund' \
|
||||
'cp package.json /work/layer/app/' \
|
||||
|
|
@ -49,3 +50,4 @@ for param in url revision image; do
|
|||
done
|
||||
|
||||
! grep -qiE 'kaniko|privileged: true' "$task"
|
||||
! grep -q '^[[:space:]]*resources:' "$task"
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ for value in \
|
|||
'npm install --ignore-scripts --no-audit --no-fund --package-lock=false' \
|
||||
'memory: 256Mi' \
|
||||
'memory: 512Mi' \
|
||||
'computeResources:' \
|
||||
'tar -C /work/layer -cf /work/layer.tar www' \
|
||||
'--base=$(params.base-image)' \
|
||||
'--new_tag=$(params.image):$(params.revision)'; do
|
||||
|
|
@ -38,3 +39,4 @@ for param in url revision image output-directory build-configuration base-image;
|
|||
done
|
||||
|
||||
! grep -qiE 'kaniko|privileged: true' "$task"
|
||||
! grep -q '^[[:space:]]*resources:' "$task"
|
||||
|
|
|
|||
Loading…
Reference in a new issue