Skip to content

Commit 1119177

Browse files
committed
Fix missing default options
1 parent a3ffc4f commit 1119177

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/plugins/aws/provider.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@ class AwsProvider {
11441144
path: { type: 'string' },
11451145
file: { type: 'string' },
11461146
buildArgs: { type: 'object', additionalProperties: { type: 'string' } },
1147-
buildOptions: {type: 'array',items: { type: 'string' } },
1147+
buildOptions: { type: 'array', items: { type: 'string' } },
11481148
cacheFrom: { type: 'array', items: { type: 'string' } },
11491149
platform: { type: 'string' },
11501150
provenance: { type: 'string' },
@@ -2518,7 +2518,7 @@ Object.defineProperties(
25182518
const { imageUri, imageName } = resolveImageUriOrName();
25192519
const defaultDockerfile = 'Dockerfile';
25202520
const defaultBuildArgs = {};
2521-
const defaultBuildOptions = []
2521+
const defaultBuildOptions = [];
25222522
const defaultCacheFrom = [];
25232523
const defaultScanOnPush = false;
25242524
const defaultPlatform = '';
@@ -2568,8 +2568,8 @@ Object.defineProperties(
25682568
if (imageDefinedInProvider.uri && imageDefinedInProvider.buildOptions) {
25692569
throw new ServerlessError(
25702570
`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+
);
25732573
}
25742574
if (imageDefinedInProvider.uri && imageDefinedInProvider.cacheFrom) {
25752575
throw new ServerlessError(
@@ -2612,6 +2612,7 @@ Object.defineProperties(
26122612
imagePath: imageDefinedInProvider,
26132613
imageFilename: defaultDockerfile,
26142614
buildArgs: imageDefinedInProvider.buildArgs || defaultBuildArgs,
2615+
buildOptions: imageDefinedInProvider.buildOptions || defaultBuildOptions,
26152616
cacheFrom: imageDefinedInProvider.cacheFrom || defaultCacheFrom,
26162617
platform: imageDefinedInProvider.platform || defaultPlatform,
26172618
provenance: imageDefinedInProvider.provenance || defaultProvenance,

0 commit comments

Comments
 (0)