-
Notifications
You must be signed in to change notification settings - Fork 12
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
Propagating Secrets form Github Actions into Serverless Functions #159
Comments
@eyalch. I can see you made some changes around this functionality recently. Have you got it to work reliably? Perhaps you can see some issue with my configuration. |
You have a typo in that secret ref |
Thanks Mark. 100% typos. I also was accessing the variables incorrectly inside Github actions too. |
However I have stumbled across a slightly more interesting issue. In my app I use some serverless functions, these are referenced in the
snapshot of
These References work when envs values are 'hardcoded' in .do/app.yaml. But when I replace those hardcoded env values with github secrets and vars I get buildtime errors. It seems that when building the serverless functions in Digital Ocean, the github injected values are not there! I get the following error. I wonder if this is something to do with my mono repo style setup. Or weather there is a 'trick' I am missing to make these environment variables available to the serverless functions too. @markusthoemmes - would you be able to shed some light? Is it worth me changing the title of this issue? |
To the system, there's no difference between "Github injected values" and "hardcoded values" really. The substitution is done in the Github Action and so to App Platform, it's all the same. As such: Are you correctly connecting the dots by passing the DB_CA_CERT_GITHUB secret into the action as an env var, so that it can replace it in |
When following the docs in the GH marketplace, I cannot get the secrets or vars to propagating into my DO app.
This is my configuration, it is exactly like the docs.
When I commit this main the deployment runs but the values do not propagate to Digital Ocean.
app.yaml
workflow/deploy_app.yml
Do you have any idea what I am doing wrong?
The text was updated successfully, but these errors were encountered: