fancy-daybreak-62348
12/22/2023, 6:41 PMgorgeous-winter-99296
12/22/2023, 7:08 PMgorgeous-winter-99296
12/22/2023, 7:13 PMfancy-daybreak-62348
12/22/2023, 7:29 PMfancy-daybreak-62348
12/22/2023, 7:30 PMwitty-family-13337
12/22/2023, 7:32 PMDigest with the contents of the Docker image?fancy-daybreak-62348
12/22/2023, 7:35 PMwitty-family-13337
12/22/2023, 7:37 PMdigest is quite an overloaded word in Pants so I had to askfancy-daybreak-62348
12/22/2023, 7:44 PMwitty-family-13337
12/22/2023, 7:45 PMimage_id (which is the equivalent to the SHA digest) by triggering a build of the docker image using await Get(BuiltPackage, DockerPackageFieldSet). The returned BuiltPackage will contain BuiltDockerImage artifacts and each of them will have an image_id field with that valuewitty-family-13337
12/22/2023, 7:46 PMhelm backendfancy-daybreak-62348
12/22/2023, 7:47 PMwitty-family-13337
12/22/2023, 7:47 PMdocker_image target in the helm_deployment target as described in the docs and let Pants take care of itwitty-family-13337
12/22/2023, 7:49 PMimage_id, do you mind describing what problem do you have now using the Helm backend so I may come up with some enhancement for a future release?fancy-daybreak-62348
12/22/2023, 7:51 PMwitty-family-13337
12/22/2023, 7:52 PMfancy-daybreak-62348
12/22/2023, 8:01 PMfancy-daybreak-62348
12/22/2023, 8:01 PMwitty-family-13337
12/22/2023, 8:03 PMi just can’t figure out how to get the digesthttps://pantsbuild.slack.com/archives/C01CQHVDMMW/p1703274347857549?thread_ts=1703270507.200519&cid=C01CQHVDMMW
fancy-daybreak-62348
12/22/2023, 9:17 PMgorgeous-winter-99296
12/22/2023, 9:23 PMgorgeous-winter-99296
12/22/2023, 9:25 PMgorgeous-winter-99296
12/22/2023, 9:25 PMwitty-family-13337
12/22/2023, 9:58 PMfancy-daybreak-62348
12/23/2023, 12:26 AMfancy-daybreak-62348
12/23/2023, 12:29 AMpackaeg, then taking the output BuiltPackage 's image_id field, and pushing it into a ``docker inspect --format='{{index .RepoDigests 0}}' $IMAGE`` command. This lets me iterate over all images that need to be build using the MutliGet method to then run the attestation. So that part is fine, what im still stuck on is how do i elegantly pass the digests upstream to helm for deployment, if i can't do that, you'd have to manually run package (or my new plugin pants attest_image :: , and manually enter the digests for the GKE deploymentbrief-branch-21752
12/06/2024, 8:41 PM