Okay. So, to clarify things:
- If you run
fly ssh console -C env, you see your secrets. - If your secret is in the
.envfile, everything works. - Your deploy is failing.
Is it failing while building a docker image? Docker builders, IIRC, do not have access to secrets. Release commands and running apps do, but not docker builders.
If you feel comfortable doing this, posting information like logs of failed commands (obviously not the output of env though!!) might get you more help as well.