File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,12 @@ registry_prefix_quay="quay.io/redhat-user-workloads/ocp-serverless-tenant/server
15
15
registry_quay=" ${registry_prefix_quay}${quay_registry_app_version} "
16
16
registry_redhat_io=" registry.redhat.io/openshift-serverless-1"
17
17
18
+ # Add extra flags to skopeo cmd, in case of MacOS add OS/arch overrides
19
+ export SKOPEO_EXTRA_FLAGS=" ${SKOPE_EXTRA_FLAGS:- } "
20
+ if [[ " $( uname -s) " == " Darwin" ]]; then
21
+ SKOPEO_EXTRA_FLAGS=" ${SKOPEO_EXTRA_FLAGS} --override-os linux --override-arch amd64"
22
+ fi
23
+
18
24
function get_serverless_operator_rhel_version() {
19
25
sorhel --so-version=" ${CURRENT_VERSION} "
20
26
}
@@ -336,7 +342,8 @@ function latest_konflux_image_sha() {
336
342
function image_with_sha {
337
343
image=${1:? " Provide image" }
338
344
339
- digest=$( skopeo inspect --no-tags=true " docker://${image} " | jq -r ' .Digest' )
345
+ # shellcheck disable=SC2086
346
+ digest=$( skopeo inspect --no-tags=true ${SKOPEO_EXTRA_FLAGS} " docker://${image} " | jq -r ' .Digest' )
340
347
if [ " ${digest} " = " " ]; then
341
348
echo " "
342
349
fi
You can’t perform that action at this time.
0 commit comments