Feature Request: skip Push on Unchanged Digest
See original GitHub issueI have a monorepo with multiple docker images and I would like to publish an image only if the digest of the image is not present in the registry, regardless of the tag. I’m using fluxcd and right now because a tag is pushed on every push to master, all the pods are being restarted.
I suggest the option skipUnchangedDigest
to the build-push-action and when set to true the action will skip the push if the digest already present.
Bazel build supports this with skipUnchangedDigest flag to the container_push rule, code is here: https://github.com/bazelbuild/rules_docker/blob/06c5419265e84baf168ba4d3982f45fe1fe312b4/container/go/cmd/pusher/pusher.go#L132 https://github.com/bazelbuild/rules_docker/blob/06c5419265e84baf168ba4d3982f45fe1fe312b4/container/go/cmd/pusher/pusher.go#L163
Issue Analytics
- State:
- Created 3 years ago
- Comments:19 (1 by maintainers)
Top GitHub Comments
Another note, you must built in once with BUILDKIT_INLINE_CACHE before you can use it.
and
build_args: BUILDKIT_INLINE_CACHE=1