Skip to content

Commit 0056c6a

Browse files
committed
also allow for overriding docker tag at the function level
1 parent df39147 commit 0056c6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,13 @@ class ServerlessPlugin {
5252
// --features python3-sys, ect
5353
customArgs.push('-e', `CARGO_FLAGS=${cargoFlags}`);
5454
};
55+
const dockerTag = (funcArgs || {}).dockerTag || this.custom.dockerTag;
5556
return spawnSync(
5657
'docker',
5758
[
5859
...defaultArgs,
5960
...customArgs,
60-
`softprops/lambda-rust:${this.custom.dockerTag}`
61+
`softprops/lambda-rust:${dockerTag}`
6162
],
6263
captureOutput ? {} : NO_OUTPUT_CAPTURE
6364
);

0 commit comments

Comments
 (0)