Skip to content
This repository was archived by the owner on Feb 11, 2023. It is now read-only.
This repository was archived by the owner on Feb 11, 2023. It is now read-only.

Make build.js configurable via environment variables #38

Description

@pldimitrov

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions