Skip to content

Commit

Permalink
Fix test image upload (#4228)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsimansk authored Jan 24, 2025
1 parent badf666 commit 3f9f40c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/upload-test-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,17 @@ function upload_test_images() {
tag_option="--tags $docker_tag,latest"
fi

# If PLATFORM environment variable is specified, then images will be built for
# specific hardware architecture.
# Example of the variable values - "linux/arm64", "linux/s390x".
local platform=""
if [ -n "${PLATFORM}" ]; then
platform="--platform ${PLATFORM}"
fi

# ko resolve is being used for the side-effect of publishing images,
# so the resulting yaml produced is ignored.
ko resolve ${KO_FLAGS} ${tag_option} -RBf "${image_dir}" >/dev/null
ko resolve ${platform} ${tag_option} -RBf "${image_dir}" >/dev/null
}

: ${KO_DOCKER_REPO:?"You must set 'KO_DOCKER_REPO', see DEVELOPMENT.md"}
Expand Down

0 comments on commit 3f9f40c

Please sign in to comment.