Skip to content

Commit

Permalink
build: run ko resolve on build presubmit πŸ™ƒ
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
vdemeester committed Dec 9, 2020
1 parent 5cd1b51 commit 0de256f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/presubmit-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0de256f

Please sign in to comment.