Skip to content

Commit

Permalink
fix: bundle dotenv files on Azure
Browse files Browse the repository at this point in the history
Remove explicit check for AWS Lambda from BOM so that dotenv files
get bundled by default on all platforms other than AWS ECS.
  • Loading branch information
hassy committed Aug 19, 2024
1 parent 99a7df7 commit 6e3c5d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/artillery/lib/cmds/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class RunCommand extends Command {
async run() {
const { flags, argv, args } = await this.parse(RunCommand);

if (flags.platform === 'aws:fargate') {
if (flags.platform === 'aws:ecs') {
// Delegate to existing implementation
const RunFargateCommand = require('./run-fargate');
return await RunFargateCommand.run(argv);
Expand Down
3 changes: 1 addition & 2 deletions packages/artillery/lib/platform/aws-ecs/legacy/bom.js
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,7 @@ function getExtraFiles(context, next) {

function getDotEnv(context, next) {
const flags = context.opts.flags;
//TODO: For now only enabled on Lambda. Enable this for Fargate after refactoring to allow for it
if (!flags.dotenv || flags.platform !== 'aws:lambda') {
if (!flags.dotenv || flags.platform === 'aws:ecs') {
return next(null, context);
}

Expand Down

0 comments on commit 6e3c5d1

Please sign in to comment.