proud-art-41399
05/22/2024, 6:47 PM...
+ docker-build:index:Image xxx creating (177s) #52 exporting to GitHub Actions Cache
+ docker-build:index:Image xxx creating (177s) #52 preparing build cache for export
@ updating....
.
.
.
+ docker-build:index:Image xxx creating (196s) #52 preparing build cache for export 19.2s done
+ docker-build:index:Image xxx creating (196s) #52 ERROR: failed to parse error response 404: : unexpected end of JSON input
+ docker-build:index:Image xxx creating (196s) ------
+ docker-build:index:Image xxx creating (196s) > importing cache manifest from gha:17390658690791770245:
+ docker-build:index:Image xxx creating (196s) ------
+ docker-build:index:Image xxx creating (196s) ------
+ docker-build:index:Image xxx creating (196s) > exporting to GitHub Actions Cache:
+ docker-build:index:Image xxx creating (196s) ------
+ docker-build:index:Image xxx creating (196s)
+ docker-build:index:Image xxx creating (196s) #0 building with "jolly_fermi" instance using docker-container driver
+ docker-build:index:Image xxx creating (196s) error: failed to solve: failed to parse error response 404: : unexpected end of JSON input
+ docker-build:index:Image xxx **creating failed** error: failed to solve: failed to parse error response 404: : unexpected end of JSON input
@ updating....
pulumi:pulumi:Stack xxx-test running error: update failed
pulumi:pulumi:Stack xxx-test **failed** 1 error
Diagnostics:
pulumi:pulumi:Stack (xxx-test):
error: update failed
...
This is the relevant part of the Pulumi program:
image_name = pulumi.Output.concat(repository.repository_url, ":latest")
if os.getenv("GITHUB_ACTIONS"):
cache_from = docker_build.CacheFromArgs(
gha=docker_build.CacheFromGitHubActionsArgs()
)
cache_to = docker_build.CacheToArgs(
gha=docker_build.CacheToGitHubActionsArgs(
mode=docker_build.CacheMode.MAX
)
)
else:
cache_from = docker_build.CacheFromArgs(
registry=docker_build.CacheFromRegistryArgs(ref=image_name)
)
cache_to = docker_build.CacheToArgs(
inline=docker_build.CacheToInlineArgs()
)
image = docker_build.Image(
"xxx",
context=docker_build.BuildContextArgs(location=".."),
platforms=[docker_build.Platform.LINUX_AMD64],
tags=[image_name],
cache_from=[cache_from],
cache_to=[cache_to],
push=True,
registries=[
docker_build.RegistryArgs(
address=repository.repository_url,
username=auth_token.user_name,
password=pulumi.Output.secret(auth_token.password),
)
],
)
Thanksproud-art-41399
05/23/2024, 2:24 PM