Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing Heroku config variables to docker build environment #320

Open
2 tasks done
rohanx96 opened this issue Oct 23, 2024 · 0 comments
Open
2 tasks done

Passing Heroku config variables to docker build environment #320

rohanx96 opened this issue Oct 23, 2024 · 0 comments
Assignees
Labels

Comments

@rohanx96
Copy link

Required Terms

What service(s) is this request for?

Deploying with Docker

Tell us about what you're trying to solve. What challenges are you facing?

The only way to have env variables in docker build is by setting all config vars in heroku.yml directly. This is quite problematic because this means we need to push all our build env variables to Github for Github automatic deployments to work.

It would be great if the Heroku config variables can be made available to the build env. So the variables are still defined in the config block of heroku.yml but we can pick these up from the env

  docker:
    web: Dockerfile
  config:
    ENVIRONMENT_VARIABLE_1 : ${ENVIRONMENT_VARIABLE_1}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants