Skip to content

Commit

Permalink
Include Windows image builds in CI build tests
Browse files Browse the repository at this point in the history
closes #5177

Signed-off-by: Andrew Bayer <[email protected]>
  • Loading branch information
abayer committed Jul 20, 2022
1 parent 94055d9 commit d74b989
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/presubmit-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,20 @@ function check_yaml_lint() {

function ko_resolve() {
header "Running `ko resolve`"

cat <<EOF > .ko.yaml
# This matches the value configured in .ko.yaml
defaultBaseImage: ghcr.io/distroless/static
baseImageOverrides:
# Use the combined base image for images that should include Windows support.
github.com/tektoncd/pipeline/cmd/entrypoint: gcr.io/tekton-releases/github.com/tektoncd/pipeline/combined-base-image:latest
github.com/tektoncd/pipeline/cmd/nop: gcr.io/tekton-releases/github.com/tektoncd/pipeline/combined-base-image:latest
github.com/tektoncd/pipeline/cmd/workingdirinit: gcr.io/tekton-releases/github.com/tektoncd/pipeline/combined-base-image:latest
# This matches values configured in .ko.yaml
github.com/tektoncd/pipeline/cmd/git-init: ghcr.io/distroless/git
EOF

KO_DOCKER_REPO=example.com ko resolve --platform=all --push=false -R -f config 1>/dev/null
}

Expand Down

0 comments on commit d74b989

Please sign in to comment.