fly launch not working anymore (failed setting GitHub secret)

I’m trying to deploy a new app. It worked before but now I’m in a new branch after I deleted the other apps and I only get this error and cant proceed anymore:

Setting FLY_API_TOKEN secret in GitHub repository settings
Error: failed setting FLY_API_TOKEN secret in GitHub repository settings: exit status 1

Anyone any idea how to go about this?

Thanks!

Hi… That sounds like it might be this:

It might be sufficient to just tweak your .git/config temporarily, for the duration of fly launch

Added flyctl

thanks mayailurus, but doesnt seem to be it, the .git/config file just looks like it looked before using fly … it worked until I deleted som apps and stashed the branches … now it just wont work anymore.

I’ve opened an issue: Don't fail `fly launch` if github secret can't be set. · Issue #3858 · superfly/flyctl · GitHub

I agree that this shouldn’t stop a fly launch. Automatic git deploy is a nice to have, not a hard requirement. I’ll change the code to emit a message and then proceed on.

3 Likes

We are also having issues with this. We are now unable to deploy something that we didn’t really plan to modify frequently for a github action to make sense. We tried installing the gh ctl to see if that fixed it, but it only changed the exit status code from 1 to 4.

Please remove this sudden dependency!

Tbh this feels like something that should be opt in or at least have a cli flag to be disabled – not just able to fail more gracefully.

1 Like

I’ve run into this too. Didn’t expect it. :frowning:

I’ve released flyctl v0.2.114 containing this fix. I don’t want to attempt a bigger change over a weekend. Give this a try to see if this helps.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.