So you just have to pull in earthly and then call it. Here is an example. Note that the travis file has almost nothing, because you can move all that to an Earthfile so that you can easily port it and run it locally.
https://github.com/zedtux/database_cleaner-nobrainer/blob/ma...
https://github.com/zedtux/database_cleaner-nobrainer/blob/ma...