Deploy fly.toml updates without building

I’m currently deploying with fly deploy --local-only. Very often I want to submit changes to the fly.toml, but not go through the checks to see if the build has changed. Docker takes a while to do its checks, then I have to wait while the registry reports that no layers have changed. I just want to push the fly.toml immediately. How do I do that?

flyctl needs to know which image to deploy. You can pass it directly as a command line argument.

Get currently deployed image:

$ fly status

There will be a line like:

Image    = <app>:<deployment tag>

Deploy with the same image:

fly deploy --image=registry.fly.io/<app>:<deployment tag>
2 Likes

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