We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent badf666 commit 5c18227Copy full SHA for 5c18227
test/upload-test-images.sh
@@ -30,9 +30,17 @@ function upload_test_images() {
30
tag_option="--tags $docker_tag,latest"
31
fi
32
33
+ # If PLATFORM environment variable is specified, then images will be built for
34
+ # specific hardware architecture.
35
+ # Example of the variable values - "linux/arm64", "linux/s390x".
36
+ local platform=""
37
+ if [ -n "${PLATFORM}" ]; then
38
+ platform="--platform ${PLATFORM}"
39
+ fi
40
+
41
# ko resolve is being used for the side-effect of publishing images,
42
# so the resulting yaml produced is ignored.
- ko resolve ${KO_FLAGS} ${tag_option} -RBf "${image_dir}" >/dev/null
43
+ ko resolve ${platform} ${tag_option} -RBf "${image_dir}" >/dev/null
44
}
45
46
: ${KO_DOCKER_REPO:?"You must set 'KO_DOCKER_REPO', see DEVELOPMENT.md"}
0 commit comments