cool-easter-32542
06/18/2024, 5:37 PM[docker.registries.ghcr]
address = "<http://ghcr.io/robotpajamas|ghcr.io/robotpajamas>"
def docker_image_ghcr(name: str, **kwargs) -> None:
REPO_NAME = "Dockerfiles"
cache_from = kwargs.pop(
"cache_from",
{
"type": "registry",
"ref": f"@ghcr/{REPO_NAME}/{name}/build-cache:main",
},
)
cache_to = kwargs.pop(
"cache_to",
{
"type": "registry",
"mode": "max",
"ref": f"@ghcr/{REPO_NAME}/{name}/build-cache:main",
},
)
docker_image( # noqa: F821
name=f"{name}-ghcr",
cache_from=cache_from,
cache_to=cache_to,
**kwargs,
)
Leads to an error:
ERROR: failed to solve: failed to configure registry cache exporter: invalid reference format
pantsbuild/pants