I’m having the same issue with a GitHub Action to handle review environments (creating/deploying/destroying fly applications for PR branches).
- we create/launch a new application with
flyctl launch [...] --no-deploy
- we set secrets (we’ve checked and secrets are correctly set) although we’re getting the same error
Secrets are staged for the first deployment
as the OP - we do a first deploy, that is successful but secrets are empty.
- we set secrets again, exactly like step 2, and we now have secrets.
This really seems to be an issue with Fly, if anyone has any fix for this we would be glad.
Also, it’s very strange but when we deploy the app for the very first time (3) the version assigned by fly is v2
and we deploy it again (4) the version is v1
.