@@ -1144,7 +1144,7 @@ class AwsProvider {
1144
1144
path : { type : 'string' } ,
1145
1145
file : { type : 'string' } ,
1146
1146
buildArgs : { type : 'object' , additionalProperties : { type : 'string' } } ,
1147
- buildOptions : { type : 'array' , items : { type : 'string' } } ,
1147
+ buildOptions : { type : 'array' , items : { type : 'string' } } ,
1148
1148
cacheFrom : { type : 'array' , items : { type : 'string' } } ,
1149
1149
platform : { type : 'string' } ,
1150
1150
provenance : { type : 'string' } ,
@@ -2518,7 +2518,7 @@ Object.defineProperties(
2518
2518
const { imageUri, imageName } = resolveImageUriOrName ( ) ;
2519
2519
const defaultDockerfile = 'Dockerfile' ;
2520
2520
const defaultBuildArgs = { } ;
2521
- const defaultBuildOptions = [ ]
2521
+ const defaultBuildOptions = [ ] ;
2522
2522
const defaultCacheFrom = [ ] ;
2523
2523
const defaultScanOnPush = false ;
2524
2524
const defaultPlatform = '' ;
@@ -2568,8 +2568,8 @@ Object.defineProperties(
2568
2568
if ( imageDefinedInProvider . uri && imageDefinedInProvider . buildOptions ) {
2569
2569
throw new ServerlessError (
2570
2570
`You can't use the "buildOptions" and the "uri" properties at the same time "${ imageName } "` ,
2571
- 'ECR_IMAGE_URI_AND_BUILDOPTIONS_DEFINED_ERROR' ,
2572
- )
2571
+ 'ECR_IMAGE_URI_AND_BUILDOPTIONS_DEFINED_ERROR'
2572
+ ) ;
2573
2573
}
2574
2574
if ( imageDefinedInProvider . uri && imageDefinedInProvider . cacheFrom ) {
2575
2575
throw new ServerlessError (
@@ -2612,6 +2612,7 @@ Object.defineProperties(
2612
2612
imagePath : imageDefinedInProvider ,
2613
2613
imageFilename : defaultDockerfile ,
2614
2614
buildArgs : imageDefinedInProvider . buildArgs || defaultBuildArgs ,
2615
+ buildOptions : imageDefinedInProvider . buildOptions || defaultBuildOptions ,
2615
2616
cacheFrom : imageDefinedInProvider . cacheFrom || defaultCacheFrom ,
2616
2617
platform : imageDefinedInProvider . platform || defaultPlatform ,
2617
2618
provenance : imageDefinedInProvider . provenance || defaultProvenance ,
0 commit comments