Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zealmurapa committed Jul 25, 2024
1 parent 6a11dc2 commit 30ad41b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions env.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ try {
const appName = process.argv.splice(2)[0] || process.env.INPUT_SLUG || process.env.SLUG
const region = process.env.INPUT_REGION || process.env.AWS_REGION || 'us-east-1'

const secretName = process.env.INPUT_SECRET_NAME || process.env.SECRET_NAME
const secretName = process.env.INPUT_SECRET_NAME
const releaseTag = process.env.INPUT_RELEASE_TAG || process.env.RELEASE_TAG || (new Date() * 1000).toString()

console.log('###############################################################')
Expand Down Expand Up @@ -61,9 +61,10 @@ client.getSecretValue({ SecretId: secretName }, (err, data) => {
aws:elasticbeanstalk:application:environment:
${ebFile}`

console.log(ebMap)

fs.writeFile('./.ebextensions/options.config', ebMap, function(err, data) {
const fp = `./.ebextensions/${appName ?? releaseTag }-options.config`

fs.writeFile(fp, ebMap, function(err, data) {
if(err) throw err
console.log(data)
})
Expand Down

0 comments on commit 30ad41b

Please sign in to comment.