Deploy a Phoenix app with GitHub Actions on fly.io with Docker layer caching

Hello :wave:

Fly is awesome but we had some issues with the fly remote builder like this one: Build instance ran out of space

It forced us to delete the builder app from time to time.

So we migrated the image build on GitHub Action but what is not obvious here is how to make Docker layer caching work properly.

If anyone is in the same situation here is a workflow that works well for us :

3 Likes

Oh that’s amazing. Good setup!