basecamp / kamal

Deploy web apps anywhere.
https://kamal-deploy.org
MIT License
9.38k stars 357 forks source link

Ensure envify templates aren't polluted by existing env #865

Open jeremy opened 1 week ago

jeremy commented 1 week ago

Setting GITHUB_TOKEN as in the docs results in reusing the existing GITHUB_TOKEN since gh returns that env var if it's set:

GITHUB_TOKEN=junk gh config get -h github.com oauth_token
junk

Using the original env ensures that the templates will be evaluated the same way regardless of whether envify had been previously invoked.