From 0de256f3aaa8f3baa795550d469b204031cf10dd Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Wed, 9 Dec 2020 15:15:43 +0100 Subject: [PATCH] =?UTF-8?q?build:=20run=20ko=20resolve=20on=20build=20pres?= =?UTF-8?q?ubmit=20=F0=9F=99=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This run `ko resolve` when doing the presubmit build to be able to detect any potential "multi-arch" problem with the PRs content. `ko resolve` is used in our publish pipeline. Signed-off-by: Vincent Demeester --- test/presubmit-tests.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/presubmit-tests.sh b/test/presubmit-tests.sh index 512b041a3e0..2419097dac4 100755 --- a/test/presubmit-tests.sh +++ b/test/presubmit-tests.sh @@ -57,9 +57,15 @@ function check_yaml_lint() { results_banner "YAML Lint" 0 } +function ko_resolve() { + oci_layout_path=$(mktemp -d) + ko reslove --push=false --oci-layout-path=${oci_layout_path} -f config +} + function post_build_tests() { check_go_lint check_yaml_lint + ko_resolve } # We use the default build, unit and integration test runners.