cloudfront-auth icon indicating copy to clipboard operation
cloudfront-auth copied to clipboard

Make build.js configurable via environment variables

Open pldimitrov opened this issue 6 years ago • 1 comments
trafficstars

The current setup is not very automation-friendly. The only way to drive this from CI without baking the configuration (and secrets) into the source code is to do something like:

  • generate a distribution with a dummy confiig.json that contains only placeholders
  • have CI replace the placeholders with values coming from environment variables
  • generate a new zipfile (duplicating the logic from function zip(files))

or craft a string with the parameters you need and feed it to build.sh via stdin, but that is even hackier, I guess.

pldimitrov avatar Jun 20 '19 14:06 pldimitrov

Please check out my PR #84 when you have time. Cheers!

tuomovee avatar Mar 01 '21 16:03 tuomovee