Hacker News new | ask | show | jobs
by adamgordonbell 1659 days ago
Yep. An Earthfile describes your build steps in a containerized format. Because of this sandboxing it can run identically in CI or on your local. So you just describe your build in the earthfile and call it from CI. This means you can iterate locally and it also means switching CI vendors is simple.

You can see this in action with the Elixir Phoenix framework. They have an earthfile[1] and use github actions[2] to run it for CI.

Even if you don't use Earthly, using a vendor neutral format to describe your build process can help with iteration time.

[1] https://github.com/phoenixframework/phoenix/blob/master/Eart...

[2] https://github.com/phoenixframework/phoenix/actions/runs/146...