@@ -267,7 +267,7 @@ async function provision({
267267 useBuildKit : buildkit ,
268268 buildxPlatform : undefined ,
269269 buildxPush : false ,
270- buildxLabel : undefined ,
270+ additionalLabels : [ ] ,
271271 buildxOutput : undefined ,
272272 buildxCacheTo : addCacheTo ,
273273 additionalFeatures,
@@ -432,7 +432,7 @@ async function doSetUp({
432432 useBuildKit : 'auto' ,
433433 buildxPlatform : undefined ,
434434 buildxPush : false ,
435- buildxLabel : undefined ,
435+ additionalLabels : [ ] ,
436436 buildxOutput : undefined ,
437437 buildxCacheTo : undefined ,
438438 skipFeatureAutoMapping : false ,
@@ -597,7 +597,7 @@ async function doBuild({
597597 useBuildKit : buildkit ,
598598 buildxPlatform,
599599 buildxPush,
600- buildxLabel ,
600+ additionalLabels : [ ] ,
601601 buildxOutput,
602602 buildxCacheTo,
603603 skipFeatureAutoMapping,
@@ -635,12 +635,12 @@ async function doBuild({
635635 const imageNames = ( argImageName && ( Array . isArray ( argImageName ) ? argImageName : [ argImageName ] ) as string [ ] ) || undefined ;
636636
637637 // Support multiple use of `--label`
638- const imageLabels = ( buildxLabel && ( Array . isArray ( buildxLabel ) ? buildxLabel : [ buildxLabel ] ) as string [ ] ) || undefined ;
638+ params . additionalLabels = ( buildxLabel && ( Array . isArray ( buildxLabel ) ? buildxLabel : [ buildxLabel ] ) as string [ ] ) || [ ] ;
639639
640640 if ( isDockerFileConfig ( config ) ) {
641641
642642 // Build the base image and extend with features etc.
643- let { updatedImageName } = await buildNamedImageAndExtend ( params , configWithRaw as SubstitutedConfig < DevContainerFromDockerfileConfig > , additionalFeatures , false , imageNames , imageLabels ) ;
643+ let { updatedImageName } = await buildNamedImageAndExtend ( params , configWithRaw as SubstitutedConfig < DevContainerFromDockerfileConfig > , additionalFeatures , false , imageNames ) ;
644644
645645 if ( imageNames ) {
646646 imageNameResult = imageNames ;
@@ -703,7 +703,7 @@ async function doBuild({
703703 }
704704
705705 await inspectDockerImage ( params , config . image , true ) ;
706- const { updatedImageName } = await extendImage ( params , configWithRaw , config . image , imageNames || [ ] , imageLabels || [ ] , additionalFeatures , false ) ;
706+ const { updatedImageName } = await extendImage ( params , configWithRaw , config . image , imageNames || [ ] , additionalFeatures , false ) ;
707707
708708 if ( imageNames ) {
709709 imageNameResult = imageNames ;
@@ -866,7 +866,7 @@ async function doRunUserCommands({
866866 useBuildKit : 'auto' ,
867867 buildxPlatform : undefined ,
868868 buildxPush : false ,
869- buildxLabel : undefined ,
869+ additionalLabels : [ ] ,
870870 buildxOutput : undefined ,
871871 buildxCacheTo : undefined ,
872872 skipFeatureAutoMapping,
@@ -1315,7 +1315,7 @@ export async function doExec({
13151315 omitLoggerHeader : true ,
13161316 buildxPlatform : undefined ,
13171317 buildxPush : false ,
1318- buildxLabel : undefined ,
1318+ additionalLabels : [ ] ,
13191319 buildxCacheTo : undefined ,
13201320 skipFeatureAutoMapping,
13211321 buildxOutput : undefined ,
0 commit comments