Skip to content

build: error on attests on non-multiplatform driver - #1988

Merged
jedevc merged 1 commit into
docker:masterfrom
jedevc:fix-attests-on-docker-driver
Aug 4, 2023
Merged

jedevc merged 1 commit into
docker:masterfrom
jedevc:fix-attests-on-docker-driver

Conversation

@jedevc

@jedevc jedevc commented Aug 4, 2023 •

Copy link
Copy Markdown
Collaborator

On drivers that do not support multi-platform builds (the default docker driver), we do not support building attestations (unless using the containerd store).

We need to check this feature before attempting to build using attestations.

(thanks @cdupuis for the find 🎉)

@jedevc jedevc added kind/bug Something isn't working needs-cherry-pick/v0.11 labels Aug 4, 2023
On drivers that do not support multi-platform builds (the default
`docker` driver), we do not support building attestations (unless using
the containerd store).

We need to check this feature before attempting to build using
attestations.

Also adds a test to ensure that attestations can be pushed to registries
at all, and that it adequately fails on the docker driver.

Signed-off-by: Justin Chadwell <me@jedevc.com>
@jedevc
jedevc force-pushed the fix-attests-on-docker-driver branch from 9e17179 to e206c58 Compare August 4, 2023 14:29
@jedevc
jedevc marked this pull request as ready for review August 4, 2023 14:29
@jedevc
jedevc merged commit 1f61de0 into docker:master Aug 4, 2023
@jedevc
jedevc deleted the fix-attests-on-docker-driver branch August 4, 2023 15:07
@jedevc

jedevc commented Aug 4, 2023

Copy link
Copy Markdown
Collaborator Author

Hm, I added needs-cherry-pick/v0.11, but since this bug actually was there since v0.10, is that the right call?

@crazy-max

Copy link
Copy Markdown
Member

Hm, I added needs-cherry-pick/v0.11, but since this bug actually was there since v0.10, is that the right call?

Yes I think it still needs to be backported

@dvdksn

dvdksn commented Aug 4, 2023

Copy link
Copy Markdown
Contributor

I think we could add a note in attestation docs too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants