Skip to content

Commit 0bb34bf

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

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
@@ -606,7 +606,7 @@ jobs:
606606
}
607607
if (inpCache) {
608608
bakeOverrides.push(`*.cache-from=type=gha,scope=${inpCacheScope || target}${platformPairSuffix}`);
609-
bakeOverrides.push(`*.cache-to=type=gha,scope=${inpCacheScope || target}${platformPairSuffix},mode=${inpCacheMode}`);
609+
bakeOverrides.push(`*.cache-to=type=gha,ignore-error=true,scope=${inpCacheScope || target}${platformPairSuffix},mode=${inpCacheMode}`);
610610
}
611611
core.info(JSON.stringify(bakeOverrides, null, 2));
612612
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
@@ -496,7 +496,7 @@ jobs:
496496
497497
if (inpCache) {
498498
core.setOutput('cache-from', `type=gha,scope=${inpCacheScope || inpTarget || 'buildkit'}${platformPairSuffix}`);
499-
core.setOutput('cache-to', `type=gha,scope=${inpCacheScope || inpTarget || 'buildkit'}${platformPairSuffix},mode=${inpCacheMode}`);
499+
core.setOutput('cache-to', `type=gha,ignore-error=true,scope=${inpCacheScope || inpTarget || 'buildkit'}${platformPairSuffix},mode=${inpCacheMode}`);
500500
}
501501
502502
if (inpSetMetaAnnotations && inpMetaAnnotations.length > 0) {

0 commit comments

Comments
 (0)