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

Feat: output grouped digest #99

Closed
waybackarchiver opened this issue Oct 27, 2022 · 1 comment
Closed

Feat: output grouped digest #99

waybackarchiver opened this issue Oct 27, 2022 · 1 comment

Comments

@waybackarchiver
Copy link

waybackarchiver commented Oct 27, 2022

Hi guys,

Really like this action. I discovered cosign requires digest, but this action does not group all of the image digest output, which would be preferred if supported.

Relates to sigstore/cosign#2047

Thanks.

@crazy-max
Copy link
Member

metadata output already contains containerimage.digest for all built targets: https://github.com/docker/bake-action/actions/runs/5222125090/jobs/9427226905#step:5:234

  {
    "t1": {
      "containerimage.buildinfo": {
        "frontend": "gateway.v0",
        "attrs": {
          "cmdline": "docker/dockerfile:1",
          "filename": "Dockerfile",
          "source": "docker/dockerfile:1",
          "target": "t1",
          "vcs:revision": "eb348b10d62f5f6e9386118f8dc00e45aac33aa7",
          "vcs:source": "https://github.com/docker/bake-action"
        },
        "sources": [
          {
            "type": "docker-image",
            "ref": "docker.io/docker/dockerfile:1",
            "pin": "sha256:39b85bbfa7536a5feceb7372a0817649ecb2724562a38360f4d6a7782a409b14"
          },
          {
            "type": "docker-image",
            "ref": "docker.io/library/busybox:latest",
            "pin": "sha256:560af6915bfc8d7630e50e212e08242d37b63bd5c1ccf9bd4acccf116e262d5b"
          }
        ]
      },
      "containerimage.descriptor": {
        "mediaType": "application/vnd.oci.image.index.v1+json",
        "digest": "sha256:38810b25e60cc4b990aaaac46d4aac25674b062a130eae5c3727ed7276e0eb77",
        "size": 855
      },
      "containerimage.digest": "sha256:38810b25e60cc4b990aaaac46d4aac25674b062a130eae5c3727ed7276e0eb77",
      "image.name": "localhost:5000/name/app:t1"
    },
    "t2": {
      "containerimage.buildinfo": {
        "frontend": "gateway.v0",
        "attrs": {
          "cmdline": "docker/dockerfile:1",
          "filename": "Dockerfile",
          "source": "docker/dockerfile:1",
          "target": "t2",
          "vcs:revision": "eb348b10d62f5f6e9386118f8dc00e45aac33aa7",
          "vcs:source": "https://github.com/docker/bake-action"
        },
        "sources": [
          {
            "type": "docker-image",
            "ref": "docker.io/docker/dockerfile:1",
            "pin": "sha256:39b85bbfa7536a5feceb7372a0817649ecb2724562a38360f4d6a7782a409b14"
          },
          {
            "type": "docker-image",
            "ref": "docker.io/library/busybox:latest",
            "pin": "sha256:560af6915bfc8d7630e50e212e08242d37b63bd5c1ccf9bd4acccf116e262d5b"
          }
        ]
      },
      "containerimage.descriptor": {
        "mediaType": "application/vnd.oci.image.index.v1+json",
        "digest": "sha256:0212cde084fda12a3b7478248fad57e121727eac6492c11abad4f5a1288b82e5",
        "size": 855
      },
      "containerimage.digest": "sha256:0212cde084fda12a3b7478248fad57e121727eac6492c11abad4f5a1288b82e5",
      "image.name": "localhost:5000/name/app:t2"
    }
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants