Skip to content

Commit 92ad768

Browse files
committed
Ensure docker opts labels are always defined
The `generateLabels` can create docker optiosn with a `labels: undefined` property. This may cause issues with some docker runtimes, resulting in the response ``` (HTTP code 400) unexpected - failed to parse query parameter 'labels': "": unexpected end of JSON input ``` Change-type: patch
1 parent bc7c319 commit 92ad768

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/multibuild/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ const generateBuildArgs = (
102102

103103
const generateLabels = (task: BuildTask): { labels?: Dictionary<string> } => {
104104
return {
105-
labels: task.labels,
105+
labels: { ...task.labels },
106106
};
107107
};
108108

0 commit comments

Comments
 (0)