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