We have several apps that we want to deploy as close to simultaneously as possible.
So the plan is to build them all without deploying, then deploy them all.
So first build-only and set a label:
flyctl deploy -a myapp --build-only --label MYLABEL
And then actually deploy the built image:
flyctl deploy -a myapp -i registry.fly.io/myapp:MYLABEL
But I’m getting this error:
Searching for image 'registry.fly.io/myapp:MYLABEL' remotely...
Error: failed to fetch an image or build from source:
Could not find image "registry.fly.io/myapp:MYLABEL"
Notes
- If I actually deploy the image (without
--build-only
) then themyapp:MYLABEL
becomes findable… - I’m using the exact image name as output by the
--build-only
step. - I’ve successfully used the
--image IMAGE
flag with an image that I manually pushed to Fly afterfly auth docker
, but somehow it doesn’t work this way.