I want to build an image from a Dockerfile remotely (local machine is an M1) and deploy that same image in two separate steps, a few minutes apart.
Step one is to build image remotely using a Fly builder and tag/label the image.
==> Verifying app config
--> Verified app config
==> Building image
Searching for image 'registry.fly.io/damp-bird-1849:12345' locally...
Searching for image 'registry.fly.io/damp-bird-1849:12345' remotely...
Error failed to fetch an image or build from source: Could not find image "registry.fly.io/damp-bird-1849:12345"
I was expecting the image to be available in the fly registry. What am I doing wrong?
Hey, I tried to replicate your error and got stuck at the same place, but the steps mentioned below helped me unblock, not sure if this is what you are looking for but it kinda worked, let me know how it goes and there might be a better solution.
Thanks for the response and the correct use of the --image-label option. If I understand it correctly, even the --remote-only build doesn’t push to the registry.
I believe @diru is going to work on the feature request for this.