fierce-greece-10087
02/17/2025, 2:27 PM--cache-from
and --cache-to
functionalities. But the images built this way don't play nicely with our GitLab
container registry. When they are pushed, they seem not to contain any metadata. This is because buildkit has newer format of the metadata.
I am able to solve this outside of pants, in two ways:
• By passing --provenance=false
flag directly to docker buildx build
command.
• By setting BUILDX_NO_DEFAULT_ATTESTATIONS=1
environmental variable.
I can't get this to work with pants though. I tried setting the BUILDX_NO_DEFAULT_ATTESTATIONS
both in the shell where I build, as well as putting this to .pants.bootstrap
file.
Does anyone have an idea if this is supposed to work with pants somehow?wide-midnight-78598
02/17/2025, 3:39 PMwide-midnight-78598
02/17/2025, 3:40 PMwide-midnight-78598
02/17/2025, 3:41 PMfierce-greece-10087
02/18/2025, 9:58 AM[docker].env_vars
in pants.toml
file.fierce-greece-10087
02/18/2025, 9:59 AM[docker]
env_vars = [
"BUILDX_NO_DEFAULT_ATTESTATIONS=1"
]