Deploying a fly.io app multiple times with ephemeral keys

i’ve got tailscale working nicely with a caddy server deployed to fly dot io using tailscale’s fly.io instructions.

this is all working great except when i need to make a change and deploy it again! i get errors about the key being invalid. my current workflow is to basically remove the machine, make a new ephemeral key and redeploy the whole thing with this new key.

i’ve also tried to use reusable keys, but then i get machines with new numbers appended, and they don’t map to the ts dot net domain.

what’s the right way to do this? i.e. so i can tweak my Caddyfile and run flyctl deploy and access this through the ts.net domain.