redhat-actions / buildah-build

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

Add 'digest' output #32

Closed tetchel closed 3 years ago

tetchel commented 3 years ago

Like we have in push-to-registry, it would be useful to have an output that contains the built image's digest.

tetchel commented 3 years ago

Cancelling this because it would not work the way I thought it would.

tunedal commented 4 months ago

@tetchel Could you elaborate on how this wouldn't work the way you thought it would? I also think I want this feature, so I would like to know if I've misunderstood how this works and, if so, what I should be doing instead.

If you potentially have multiple builds running concurrently, how do you retrieve the image built by the current job? You could work around it by tagging it with a UUID, I guess, but then just using the digest seems much simpler. Or the image ID as output would also work, which I think is what docker build --iidfile provides.