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 authored and tekton-robot committed Dec 14, 2020
1 parent d56fae6 commit b29b89c
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() {
header "Running `ko resolve`"
KO_DOCKER_REPO=example.com ko resolve --platform=all --push=false -f config 1>/dev/null
}

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 b29b89c

Please sign in to comment.