flyctl
flyctl copied to clipboard
Delegate manifest deploy to remote builder
This PR builds on top of https://github.com/superfly/flyctl/pull/3769. We generate a manifest locally then launch a machine
with the deployer image(currently docker.io/codebaker/fly-deployer:5cb86e4), once it's ready we use Execute a remote command
to pass the manifest to a go daemon in the machine to pass it the base64 encoded manifest that it decodes before running
fly deploy --from-manifest
.
I'm still trying to solve 2 issues here:
- The token I was using to deploy(set in the machine's secrets) recently stopped working for me.
- I'm taking advantage of machine restarts on non 0 exit codes to retry the deploy on next boot but I need to persist
the operation I described in the paragraph above to automatically run
fly deploy --from-manifest
on next boot.