stale-waitress-56895
04/23/2025, 9:42 AMstale-waitress-56895
05/08/2025, 7:57 AMfresh-mechanic-68429
05/08/2025, 12:00 PMstale-waitress-56895
05/08/2025, 1:33 PMbreezy-wolf-83149
06/07/2025, 10:06 AM{pants.hash} then? There's a way to tag an image using it, but how can it help? My goal is to avoid building a given image if it didn't change, so ideally I'd like to:
⢠retrieve a hash for an image that I have in the registry
⢠retrieve a hash that corresponds for the revision of the code base where my Dockerfile and file dependencies are stored
⢠if the hashes match, do nothing. If they don't match, rebuild and push
I thought that the hash can be calculated statically, i. e. just by giving Pants the target, so that Pants can take a look at files and base images contributing to a given image, and calculate the hash. However, so far it looks like the hash is known only after a successful build of an image, so that I can tag the image using the hash and that's it. Am I missing something, or some feature of Pants is missing to efficiently use the hash?stale-waitress-56895
06/07/2025, 10:15 AMbreezy-wolf-83149
06/07/2025, 10:19 AMbreezy-wolf-83149
06/07/2025, 10:21 AMstale-waitress-56895
06/07/2025, 10:24 AMstale-waitress-56895
06/07/2025, 10:25 AMbreezy-wolf-83149
06/07/2025, 10:31 AMbreezy-wolf-83149
06/07/2025, 10:35 AMbreezy-wolf-83149
06/07/2025, 3:42 PM