File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed
Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -234,17 +234,30 @@ build_deps:
234234 docker push $(IMAGE_REPO_BASE ) /$(BUILD_DEPS_REPO_NAME ) :$(DEPS_DIGEST )
235235 docker push $(IMAGE_REPO_BASE ) /$(BUILD_DEPS_REPO_NAME ) :latest
236236
237- # Temporarily removed --cache-from $(IMAGE_REPO_BASE)/$(BUILD_DEPS_REPO_NAME)
238- # with slash at end for testing - add back in after --load and after --target builder when done testing
237+ # Prepares the Docker images needed to run integration tests.
238+ # First part builds the base image containing all build-time dependencies and pushes to AR.
239+ # Second part builds the actual image used for running the integration tests,
240+ # using the 'builddeps' image as a base. It build only up to the 'builder' stage
241+ # in the Dockerfile.
242+ #
243+ # The push flag is needed to tell Buildx to build the image and push it directly to AR.
244+ # AR supports multi-architecture images and manifest lists so this will pass for hybrid tests.
245+ # Note: --provenance=false and --sbom=false are required because modern Buildx
246+ # attempts to push attestation manifests that are currently rejected by
247+ # GCP Artifact Registry with a '400 Bad Request' error.
239248skaffold-builder-ci :
240249 docker buildx build \
241250 --push \
251+ --provenance=false \
252+ --sbom=false \
242253 --cache-from $(IMAGE_REPO_BASE ) /$(BUILD_DEPS_REPO_NAME ) \
243254 -f deploy/skaffold/Dockerfile.deps \
244255 -t $(IMAGE_REPO_BASE ) /$(BUILD_DEPS_REPO_NAME ) :latest \
245256 .
246257 time docker buildx build \
247- --load \
258+ --push \
259+ --provenance=false \
260+ --sbom=false \
248261 -f deploy/skaffold/Dockerfile \
249262 --target builder \
250263 -t $(IMAGE_REPO_BASE ) /skaffold-builder:latest \
Original file line number Diff line number Diff line change @@ -2041,7 +2041,7 @@ metadata:
20412041 name: getting-started
20422042spec:
20432043 containers:
2044- - image: gcr.io /skaffold-ci-cd/skaffold-example:customtag
2044+ - image: us-central1-docker.pkg.dev /skaffold-ci-cd/skaffold-example:customtag
20452045 name: getting-started
20462046` ,
20472047 },
You can’t perform that action at this time.
0 commit comments