Skip to content

Commit fe2df70

Browse files
committed
fix tests and added comments to Makefile
1 parent 180ba73 commit fe2df70

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

Makefile

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff 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.
239248
skaffold-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 \

integration/render_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2041,7 +2041,7 @@ metadata:
20412041
name: getting-started
20422042
spec:
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
},

0 commit comments

Comments
 (0)