βintegration-test - shows how WITH DOCKER and docker-compose can be used to start up services and then run an integration test suite.
βmonorepo - shows how multiple sub-projects can be co-located in a single repository and how the build can be fragmented across these.
βmultirepo - shows how artifacts from multiple repositories can be referenced in a single build. See also the grpc example for a more extensive use-case.
Examples by Earthly features
βimport - shows how to use the IMPORT command to alias project references.
βcutoff-optimization - shows that if an intermediate artifact does not change, then the rest of the build will use the cache, even if the source has changed.
βmultiplatform - shows how Earthly can execute builds and create images for multiple platforms, using QEMU emulation.
βmultiplatform-cross-compile - shows has through the use of cross-compilation, you can create images for multiple platforms, without using QEMU emulation.
Examples by use of other technologies
βgrpc - shows how to use Earthly to compile a protobuf grpc definition into protobuf code for both a Go-based server, and a python-based client, in a multirepo setup.
βterraform - shows how Terraform could be used from Earthly.
Other
βreadme - some sample code we used in our README.
βtests - a suite of tests Earthly uses to ensure that its features are working correctly.
Earthly's own build
As a distinct example of a complete build, you can take a look at Earthly's own build. Earthly builds itself, and the build files are available on GitHub: