If you wanna use Environment Variables in your callback's argument, like an API key or anything else, you need to follow the next steps.
First of all, you need to create a PRIVATE
hygie-env git repository in the same organization of your repo(s) using
For example, if you have the following git repositories using our solution:
You need to create the two following repositories:
Make sure your repo is PRIVATE because it will contain all the secrets you want to share with
Add a webhook
Then, add a webhook with the url:
--OUR_URL--/env-var with the
When you will commit your changes, we will be noticed and save your data encoded.
Finally, you need to create an
env.yml file that follow the syntax:
projects: - name: project1 envs: API_KEY: 'yourapikey' REGEXP: '^.*$' - name: project2 envs: API_KEY: 'anotherapikey' - name: project3 envs: EMAIL_ADDRESS: 'email@example.com'
With the same file, you're able to configure all the projects using