Skip to content

Commit 8859741

Browse files
committed
rollback local caching
1 parent dab3029 commit 8859741

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/docker.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ export async function getDockerCommand({
118118
const targetArgument = buildTarget ? `--target ${buildTarget}` : '';
119119
const cacheRef = `${CACHE_REPO}:${pyVer}`;
120120
const platformArg = `--platform ${platforms.join(',')}`;
121-
const cacheFromArg = `--cache-from=type=registry,ref=${cacheRef} --cache-from=type=local,src=~/.docker/buildx/cache`;
122-
const cacheToArg = isAuthenticated ? `--cache-to=type=registry,mode=max,ref=${cacheRef}` : '' + ' --cache-to=type=local,dest=~/.docker/buildx/cache';
121+
const cacheFromArg = `--cache-from=type=registry,ref=${cacheRef}`;
122+
const cacheToArg = isAuthenticated ? `--cache-to=type=registry,mode=max,ref=${cacheRef}` : '';
123123
const buildArg = pyVer ? `--build-arg PY_VER=${pyVer}` : '';
124124
const actor = process.env.GITHUB_ACTOR;
125125
const versionLabel = buildContext === 'release' ? `--label version=${buildContextRef}` : '';

0 commit comments

Comments
 (0)