Skip to content

Commit

Permalink
Fix bug around secretVar not being fetched properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Dedys authored and Mike Dedys committed Jun 16, 2017
1 parent 8d66f0e commit 28cb55c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -59,7 +59,7 @@ There are two ways to specifiy options:
targetDirectory: 'sample',
creds: {
key: 'key',
secret: 'S3_SECRET'
secretVar: 'S3_SECRET', or secret: '{SECRET}'
},
devTagVar: 'TRAVIS_COMMIT', or devTag: 'Custom dev Tag'
versionVar: 'TRAVIS_TAG' or version: 'SEMVAR VERSION: Ex. 1.0.0'
Expand Down Expand Up @@ -96,10 +96,10 @@ There are two ways to specifiy options:
"targetDirectory": "sample",
"creds": {
"key": "key",
"secret": "S3_SECRET"
"secretVar": "S3_SECRET", secret: '{SECRET}'
},
"devTag": "TRAVIS_COMMIT",
"version": "TRAVIS_TAG"
"devTagVar": "TRAVIS_COMMIT",
"versionVar": "TRAVIS_TAG"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "frau-appconfig-webpack-plugin",
"version": "0.0.3",
"version": "0.0.4",
"description": "Webpack plugin for frau-appconfig-builder",
"main": "lib/index.js",
"scripts": {
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Expand Up @@ -83,6 +83,8 @@ FrauAppConfigPlugin.prototype.apply = function(compiler) {

const publisherOptions = {
...frauPublisher,
key: frauPublisher.creds.key,
secret: frauPublisher.creds.secret || process.env[frauPublisher.creds.secretVar],
version: frauPublisher.version || process.env[frauPublisher.versionVar],
devTag: frauPublisher.devTag || process.env[frauPublisher.devTagVar]
};
Expand Down

0 comments on commit 28cb55c

Please sign in to comment.