I am trying to integrate the flyctl cli into a gitlab CI/CD setup. I have saved the token as an environment variable, and I am deploying flyctl as follows:
flyctl deploy -c fly.prod.toml --access-token $FLY_TOKEN
But flyctl returns the following error:
Error No access token available. Please login with 'flyctl auth login'
I am on version 0.0.246 of flyctl.
The token is correctly set in the ENV, so the issue seems to be with flyctl.