Skip to content

Commit 2ba0b6d

Browse files
committed
cache: ignore error on cache export
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
1 parent f98fa66 commit 2ba0b6d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/bake.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ jobs:
608608
}
609609
if (inpCache) {
610610
bakeOverrides.push(`*.cache-from=type=gha,scope=${inpCacheScope || target}${platformPairSuffix}`);
611-
bakeOverrides.push(`*.cache-to=type=gha,scope=${inpCacheScope || target}${platformPairSuffix},mode=${inpCacheMode}`);
611+
bakeOverrides.push(`*.cache-to=type=gha,ignore-error=true,scope=${inpCacheScope || target}${platformPairSuffix},mode=${inpCacheMode}`);
612612
}
613613
core.info(JSON.stringify(bakeOverrides, null, 2));
614614
core.setOutput('overrides', bakeOverrides.join(os.EOL));

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ jobs:
498498
499499
if (inpCache) {
500500
core.setOutput('cache-from', `type=gha,scope=${inpCacheScope || inpTarget || 'buildkit'}${platformPairSuffix}`);
501-
core.setOutput('cache-to', `type=gha,scope=${inpCacheScope || inpTarget || 'buildkit'}${platformPairSuffix},mode=${inpCacheMode}`);
501+
core.setOutput('cache-to', `type=gha,ignore-error=true,scope=${inpCacheScope || inpTarget || 'buildkit'}${platformPairSuffix},mode=${inpCacheMode}`);
502502
}
503503
504504
if (inpSetMetaAnnotations && inpMetaAnnotations.length > 0) {

0 commit comments

Comments
 (0)