I have been looking for this solution for a while but the documentation about the heroku.yml file is quite limited at the moment.
I have this heroku.yml file:
build:
docker:
web: Dockerfile
config:
SECRET_KEY: django-secret-key
setup:
addons:
- plan: heroku-postgresql
as: DATABASE
config:
DB_NAME: database-name
I have my environment variables in an .env file. I don't want anybody to have access to them. This .env file is added to .gitignore and .dockerignore files. The thing is, if I harcode them to the heroku.yml file they'll be accessible both from git and from the docker container
My question is the next, is there a way to pass these environment variables from the .env file to the heroku.yml file withouth hardcoding them?
