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 8289401
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions tekton/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ spec:
mcr.microsoft.com/windows/nanoserver:ltsc2022 \
${CONTAINER_REGISTRY}/$(params.package)/combined-base-image:latest)
# NOTE: Make sure this list of images to use the combined base image is in sync with what's in test/presubmit-tests.sh's 'ko_resolve' function.
cat <<EOF > ${PROJECT_ROOT}/.ko.yaml
# This matches the value configured in .ko.yaml
defaultBaseImage: ghcr.io/distroless/static
Expand Down
13 changes: 13 additions & 0 deletions test/presubmit-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,19 @@ function check_yaml_lint() {

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

cat <<EOF > .ko.yaml
defaultBaseImage: ghcr.io/distroless/static
baseImageOverrides:
# Use the combined base image for images that should include Windows support.
# NOTE: Make sure this list of images to use the combined base image is in sync with what's in tekton/publish.yaml's 'create-ko-yaml' Task.
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
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 8289401

Please sign in to comment.