diff --git a/tekton/publish.yaml b/tekton/publish.yaml index 5201987b155..bb94ae7164a 100644 --- a/tekton/publish.yaml +++ b/tekton/publish.yaml @@ -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 < ${PROJECT_ROOT}/.ko.yaml # This matches the value configured in .ko.yaml defaultBaseImage: ghcr.io/distroless/static diff --git a/test/presubmit-tests.sh b/test/presubmit-tests.sh index 5665f33d737..3cb616f20c5 100755 --- a/test/presubmit-tests.sh +++ b/test/presubmit-tests.sh @@ -59,6 +59,19 @@ function check_yaml_lint() { function ko_resolve() { header "Running `ko resolve`" + + cat < .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 }