Accessing .env
variables inside yaml configuration file
#2683
Unanswered
arsenipachkovski
asked this question in
Help needed
Replies: 1 comment 9 replies
-
Currently no. We can think of it as some feature. You can create separate task in PHP which will load all needed stuff into config. |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to access
.env
properties insidedeploy.yaml
configuration file?As I will commit
deploy.yaml
to my repository, I don't want any private information inside it.I know that it's possible with
deploy.php
by using dotenv package (e.g.Dotenv::createImmutable(__DIR__)->load()
), but is there a way with yaml file ?Here is an example of what I'm trying to achieve with cloudflare's recipe:
Beta Was this translation helpful? Give feedback.
All reactions