DefangLabs / defang

Defang CLI and sample projects. Defang is a radically simpler way for developers to develop, deploy, and debug cloud applications.
https://defang.io
MIT License
37 stars 8 forks source link

Config values at build time #662

Open raphaeltm opened 2 months ago

raphaeltm commented 2 months ago

It could be helpful to have access to config values at build time. Maybe this ties into the interpolation issue.

Edit: For clarity, I'm thinking of build processes that might need to connect to a database, or CMS, or something to generate static artifacts, for example.

lionello commented 2 months ago

I wonder if this has implications for caching builds. Like, if the build depends on $REDIS, and the values changes, should it invalidate/ignore the cache? I suppose there's no way to find out, so no choice but to build from scratch.