Skip to content
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

Support nerdctl build args: --attest, --sbom,--provenance #2786

Merged
merged 1 commit into from
Feb 4, 2024

Conversation

yankay
Copy link
Contributor

@yankay yankay commented Feb 1, 2024

Build attestations describe how an image was built, and what it contains.
Support nerdctl build args: --attest, --sbom,--provenance .

fix: #2745

@yankay yankay changed the title Support nerdctl build --attest, --sbom,provenance Support nerdctl build args: --attest, --sbom,provenance Feb 1, 2024
@yankay yankay changed the title Support nerdctl build args: --attest, --sbom,provenance Support nerdctl build args: --attest, --sbom,--provenance Feb 1, 2024
@yankay yankay force-pushed the support-build-attest branch 7 times, most recently from 555c36f to 8d11bab Compare February 1, 2024 10:41
@yankay yankay changed the title Support nerdctl build args: --attest, --sbom,--provenance [WIP]Support nerdctl build args: --attest, --sbom,--provenance Feb 1, 2024
@yankay yankay force-pushed the support-build-attest branch 7 times, most recently from a2e992d to cb4e3b7 Compare February 2, 2024 03:00
@yankay yankay changed the title [WIP]Support nerdctl build args: --attest, --sbom,--provenance Support nerdctl build args: --attest, --sbom,--provenance Feb 2, 2024
@AkihiroSuda AkihiroSuda added this to the v2.0.0 milestone Feb 2, 2024
testutil.RequiresBuild(t)
base := testutil.NewBase(t)
if testutil.GetTarget() == testutil.Docker {
base.Env = append(base.Env, "DOCKER_BUILDKIT=1")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still need this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @AkihiroSuda
It has been remove.

@@ -498,3 +498,50 @@ func TestBuildNetworkShellCompletion(t *testing.T) {
networkName := "default"
base.Cmd(gsc, "build", "--network", "").AssertOutContains(networkName)
}

func TestBuildAttestation(t *testing.T) {
testutil.DockerIncompatible(t) // ref:https://github.com/docker/buildx/issues/1655
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we just create docker-container builder in GHA?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @AkihiroSuda

The test is docker-compatible by a docker-builder created in a test case. :-)

@yankay yankay force-pushed the support-build-attest branch 2 times, most recently from 987c1f1 to 96691fd Compare February 4, 2024 11:43
Signed-off-by: Kay Yan <kay.yan@daocloud.io>
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@AkihiroSuda AkihiroSuda merged commit ba0d1a9 into containerd:main Feb 4, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nerdctl build lacks --attest, --sbom
2 participants