Hello,
This issue may have already been discussed in some topics, but it remains unclear and difficult to understand why Fly.io does not support secrets during builds.
–
Let me show you my setup :
In Github Secrets :
In GitHub Action:
In the Dockerfile:
And in case, in Fly Secrets:
–
Let’s try to build first locally (before to build in the CI):
flyctl deploy \ main * ] 1:43 pm
--config packages/bo/fly.toml \
--build-secret NEXT_PUBLIC_BO_BACK=https://apps.fly.dev/ \
-a app-bo
When Docker builds run:
The variable is empty despite the --build-secret NEXT_PUBLIC_BO_BACK=https://apps.fly.dev/
in the fly deploy command line
I added logs in the app at startup, but the variable is empty:
How can I make that work?
best