Skip to content

Commit 20a2e4e

Browse files
authored
feat: Pass arch to check layer size, set e on it (#444)
1 parent 92498ff commit 20a2e4e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ci/input_files/build.yaml.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ check-layer-size ({{ $runtime.name }}-{{ $runtime.arch }}):
5353
dependencies:
5454
- build-layer ({{ $runtime.name }}-{{ $runtime.arch }})
5555
script:
56-
- PYTHON_VERSION={{ $runtime.python_version }} ./scripts/check_layer_size.sh
56+
- PYTHON_VERSION={{ $runtime.python_version }} ARCH={{ $runtime.arch }} ./scripts/check_layer_size.sh
5757

5858
lint python:
5959
stage: test

scripts/check_layer_size.sh

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
# Compares layer size to threshold, and fails if below that threshold
99

1010
# 7 mb size limit
11+
set -e
1112
MAX_LAYER_COMPRESSED_SIZE_KB=$(expr 7 \* 1024)
1213
MAX_LAYER_UNCOMPRESSED_SIZE_KB=$(expr 24 \* 1024)
1314

0 commit comments

Comments
 (0)