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

Loading env variables on config.yml #208

Open
Corfucinas opened this issue Dec 21, 2022 · 0 comments
Open

Loading env variables on config.yml #208

Corfucinas opened this issue Dec 21, 2022 · 0 comments

Comments

@Corfucinas
Copy link

Can you enable a feature to load .env variables in the config.yml file?

## Targets, previously was known as "profiles"
targets:
  webhook1:
    url: https://oapi.dingtalk.com/robot/send?access_token=${DINGTALK_ALERT_TOKEN} # the token it's on .env
    # secret for signature
    secret: ${DINGTALK_SECRET} # the secret is under .env
    mention:
      all: true

The variables can be passed to the docker container under environment and be available inside the container for substitution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant