File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -237,6 +237,14 @@ deploy-docker:
237237 # Assemble and push the multi-arch image from the pre-built binaries. No compilation and no
238238 # QEMU: every target stage is COPY-only (the cert stage runs on the build platform).
239239 docker buildx create --use
240+ # Smoke-test BEFORE publishing anything: build the native amd64 image locally (--load) from the
241+ # exact downloaded artifact — which has lost its executable bit through the GitHub artifact
242+ # round-trip — then run it and check it serves. Nothing is pushed unless this passes, so a
243+ # broken image can never reach the registry (the build job's smoke can't catch this: it builds
244+ # the binary locally, never from the artifact).
245+ docker buildx build --load --platform linux/amd64 --tag $(DOCKER_IMAGE ) :$(DOCKER_TAG ) .
246+ $(MAKE ) start-docker smoke-docker
247+ docker rm -f $(APPNAME ) > /dev/null 2>&1 || true
240248ifdef IS_SEMVER
241249 docker buildx build --push --platform $(DOCKER_PLATFORMS) --tag $(DOCKER_IMAGE):latest .
242250endif
You can’t perform that action at this time.
0 commit comments