Skip to content

Unpin buildx version in CI #735

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 28, 2023
Merged

Unpin buildx version in CI #735

merged 1 commit into from
Feb 28, 2023

Conversation

mtardy
Copy link
Member

@mtardy mtardy commented Feb 27, 2023

Related to commit f1cbb5f on cilium/cilium.

GitHub recently rolled out Docker buildx version v0.10.0 on their builders, which transparently changed the MediaType of docker images to OCI v1 and added provenance attestations.

Unfortunately, various tools we use in CI like SBOM tooling and docker manifest inspect do not properly support some aspect of the new image formats. This resulted in breaking CI, with some messages like this:

level=fatal msg="generating doc: creating SPDX document: generating
SPDX package from image ref quay.io/cilium/docker-plugin-ci:XXX:
generating image package"

This could also lead CI to fail while waiting for image builds to complete, because the command we use to test whether the image is available did not support the image types.

The commit 7f9ac8a attempted to fix this problem by pinning the buildx version to v0.9.1 but unfortunately that didn't work since that version became unavailable. This commit reverts those changes and adds the "provenance: false", which is a flag available in docker buildx >= v0.10.0, to disable the provenance attestation.

@mtardy mtardy added the area/ci Related to CI label Feb 27, 2023
@mtardy mtardy requested a review from willfindlay as a code owner February 27, 2023 17:27
Related to commit `f1cbb5f` on cilium/cilium.

GitHub recently rolled out Docker buildx version v0.10.0 on their
builders, which transparently changed the MediaType of docker images to
OCI v1 and added provenance attestations.

Unfortunately, various tools we use in CI like SBOM tooling and docker
manifest inspect do not properly support some aspect of the new image
formats. This resulted in breaking CI, with some messages like this:

    level=fatal msg="generating doc: creating SPDX document: generating
    SPDX package from image ref quay.io/cilium/docker-plugin-ci:XXX:
    generating image package"

This could also lead CI to fail while waiting for image builds to
complete, because the command we use to test whether the image is
available did not support the image types.

The commit 7f9ac8a attempted to fix this problem by pinning the buildx
version to v0.9.1 but unfortunately that didn't work since that version
became unavailable. This commit reverts those changes and adds the
"provenance: false", which is a flag available in docker buildx >=
v0.10.0, to disable the provenance attestation.

Signed-off-by: Mahe Tardy <[email protected]>
@mtardy mtardy force-pushed the pr/mtardy/bump-buildx branch from ff78cd8 to ebe1ce0 Compare February 27, 2023 17:30
@mtardy mtardy merged commit b7a3a12 into main Feb 28, 2023
@mtardy mtardy deleted the pr/mtardy/bump-buildx branch February 28, 2023 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ci Related to CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants