From e6e8a96d4a8aaa517011282775a7654fed352b70 Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Mon, 11 Mar 2024 17:44:20 +0100 Subject: [PATCH] build(cloud): call out conflict with default provenance in gha `build-push-action` and `bake-action` add default provenance attestatiosn to images in versions 4.0.0 and later. This creates a conflict with the default cloud pull in Docker Build Cloud. Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- content/build/cloud/ci.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/content/build/cloud/ci.md b/content/build/cloud/ci.md index 65c7f284c5..eeb944c126 100644 --- a/content/build/cloud/ci.md +++ b/content/build/cloud/ci.md @@ -33,6 +33,24 @@ See [Loading build results](./usage/#loading-build-results) for details. {{< tabs >}} {{< tab name="GitHub Actions" >}} +> **Note** +> +> Version 4.0.0 and later of `docker/build-push-action` and +> `docker/bake-action` builds images with [provenance attestations by +> default](../ci/github-actions/attestations.md#default-provenance). Docker +> Build Cloud automatically attempts to load images to the local image store if +> you don't explicitly push them to a registry. +> +> This results in a conflicting scenario where if you build a tagged image +> without pushing it to a registry, Docker Build Cloud attempts to load images +> containing attestations. But the local image store on the GitHub runner +> doesn't support attestations, and the image load fails as a result. +> +> If you want to load images built with `docker/build-push-action` together +> with Docker Build Cloud, you must disable provenance attestations by setting +> `provenance: false` in the GitHub Action inputs (or in `docker-bake.hcl` if +> you use Bake). + ```yaml name: ci