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 037690a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/presubmit-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,17 @@ function check_yaml_lint() {
results_banner "YAML Lint" 0
}

function ko_resolve() {
header "Running `ko reslove`"
mkdir ocitmp
KO_DOCKER_REPO=example.com ko resolve --preserve-import-paths --push=false --oci-layout-path=ocitmp -f config 1>/dev/null
rm -fR ocitmp
}

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 037690a

Please sign in to comment.