question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: skip Push on Unchanged Digest

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Comments:19 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
somdoroncommented, Jun 18, 2020

Another note, you must built in once with BUILDKIT_INLINE_CACHE before you can use it.

2reactions
somdoroncommented, Jun 18, 2020

and build_args: BUILDKIT_INLINE_CACHE=1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration Options - Renovate Docs
After we changed the baseBranches feature, the Renovate configuration ... digest¶. Configuration to apply when updating a digest (no change in tag/version).
Read more >
git assume-unchanged. For when you want git to ignore an ...
I'll be working like this for a few days and I want to regularly commit and push my changes. But I don't want...
Read more >
Docker Compose release notes
Added changes docker compose pull command to respect defined policy: 1) skip services configured as pull_policy: never and 2) ignore those with an...
Read more >
Creating Docker images with Spring Boot 2.3.0.M1
In this blog post we'll take a look at the typical ways developers create Docker images, and show how they can be improved...
Read more >
HTTP conditional requests - MDN Web Docs - Mozilla
Conditional requests are a key feature of HTTP, and allow the building of efficient and complex applications. For caching or resuming downloads, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found