File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ PARAMS_ENV_PATH="manifests/base/params.env"
27
27
# images we want to have in the `params.env` file.
28
28
EXPECTED_NUM_RECORDS=24
29
29
30
+ # Number of attempts for the skopeo tool to gather data from the repository.
31
+ SKOPEO_RETRY=3
32
+
30
33
# Size change tresholds:
31
34
# Max percentual change
32
35
SIZE_PERCENTUAL_TRESHOLD=10
@@ -324,7 +327,7 @@ function check_image() {
324
327
local image_commitref
325
328
local image_created
326
329
327
- image_metadata_config=" $( skopeo inspect --config " docker://${image_url} " ) " || {
330
+ image_metadata_config=" $( skopeo inspect --retry-times " ${SKOPEO_RETRY} " -- config " docker://${image_url} " ) " || {
328
331
echo " Couldn't download image config metadata with skopeo tool!"
329
332
return 1
330
333
}
@@ -366,7 +369,7 @@ function check_image() {
366
369
local image_size
367
370
local image_size_mb
368
371
369
- image_metadata=" $( skopeo inspect --raw " docker://${image_url} " ) " || {
372
+ image_metadata=" $( skopeo inspect --retry-times " ${SKOPEO_RETRY} " -- raw " docker://${image_url} " ) " || {
370
373
echo " Couldn't download image metadata with skopeo tool!"
371
374
return 1
372
375
}
Original file line number Diff line number Diff line change 21
21
# Expected commit reference for the runtime images
22
22
EXPECTED_COMMIT_REF=" 2024b"
23
23
24
+ # Number of attempts for the skopeo tool to gather data from the repository.
25
+ SKOPEO_RETRY=3
26
+
24
27
# Size change tresholds:
25
28
# Max percentual change
26
29
SIZE_PERCENTUAL_TRESHOLD=10
@@ -104,7 +107,7 @@ function check_image() {
104
107
}
105
108
echo " Image URL: '${img_url} '"
106
109
107
- img_metadata_config=" $( skopeo inspect --config " docker://${img_url} " ) " || {
110
+ img_metadata_config=" $( skopeo inspect --retry-times " ${SKOPEO_RETRY} " -- config " docker://${img_url} " ) " || {
108
111
echo " ERROR: Couldn't download '${img_url} ' image config metadata with skopeo tool!"
109
112
return 1
110
113
}
@@ -143,7 +146,7 @@ function check_image() {
143
146
local img_size
144
147
local img_size_mb
145
148
146
- img_metadata=" $( skopeo inspect --raw " docker://${img_url} " ) " || {
149
+ img_metadata=" $( skopeo inspect --retry-times " ${SKOPEO_RETRY} " -- raw " docker://${img_url} " ) " || {
147
150
echo " ERROR: Couldn't download '${img_url} ' image metadata with skopeo tool!"
148
151
return 1
149
152
}
You can’t perform that action at this time.
0 commit comments