I get the error below when deploying from GitLab ci, but if I deploy from local first and then deploy again from GitLab ci it succeeds with only 2 minutes.
Are the logs you show output from the flyctl app inside the Gitlab CI runner? And does exactly the same command work with exact the same files work locally?
Maybe you are able to share a bit of your .gitlab-ci.yml and fly configuration.
Hmm, since your ci logs show that the process times out, is this the timeout from the CI or from fly? I think it is the ci timeout since they are 1h by default.
How long does the same command locally take to execute? Close to 1h? If not, maybe it is possible to enable more verbose logging, to see why yarn takes so long to fetch the packages.
Only thing I can think of to debug this further is to run both flyctl and the docker commands with debugging enabled. If you do this locally and on the CI, you might be able to find the difference and what causes this.