redhat-actions / buildah-build

GitHub Action to use 'buildah' to build a container image.
https://github.com/marketplace/actions/buildah-build
MIT License
136 stars 35 forks source link

[FEATURE] Provide image digest #118

Open ctron opened 1 year ago

ctron commented 1 year ago

Is your feature request related to a problem? Please describe.

I am trying to sign images with cosign. cosign wants a digest, instead of a tag (it can work with a tag today, but that is discouraged and deprecated).

Describe the solution you'd like

I would like the buildah step to set an output variable with the image digest.

Describe alternatives you've considered

I can manually try to evaluate the image/manifest digest.

Additional context

np22-jpg commented 1 year ago

I might be a little bit late, but redhat-actions/push-to-registry might provide what you're looking for.

Here's an example of signing images with cosign using push-to-registry from the ublue project.