Skip to content

Commit

Permalink
trying to fix docker build if --label not passed
Browse files Browse the repository at this point in the history
  • Loading branch information
prathameshzarkar9 committed Jun 16, 2024
1 parent 328da75 commit 774fbf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spec-node/containerFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export async function extendImage(params: DockerResolverParameters, config: Subs
'--target', featureBuildInfo.overrideTarget,
'-f', dockerfilePath,
...additionalImageNames.length > 0 ? additionalImageNames.map(name => ['-t', name]).flat() : ['-t', updatedImageName],
...imageLabels.length > 0 ? imageLabels.map(label => ['--label', label]).flat() : ['--label', ''],
...imageLabels.length > 0 ? imageLabels.map(label => ['--label', label]).flat() : [],
emptyTempDir
);

Expand Down

0 comments on commit 774fbf5

Please sign in to comment.