Skip to content

Commit 9678e1d

Browse files
committed
Stringify cachefrom option passed to the builder
Relates-to: apocas/docker-modem#181 Change-type: patch
1 parent 95fe29c commit 9678e1d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

lib/attach/fixtures.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,12 @@ export async function mochaGlobalSetup() {
177177
// Use the project name as part of the image name
178178
t: `${config.projectName}:testing`,
179179
...config.dockerBuildOpts,
180-
cachefrom: [...(config.dockerBuildOpts.cachefrom ?? []), ...cache],
180+
// The call to stringify may become redundant if this PR is merged
181+
// https://github.com/apocas/dockerode/pull/793
182+
cachefrom: JSON.stringify([
183+
...(config.dockerBuildOpts.cachefrom ?? []),
184+
...cache,
185+
]),
181186
},
182187
hooks,
183188
logger.error,

0 commit comments

Comments
 (0)