GitHub Actions
Here is an example of a GitHub Actions build that uses the earthly/actions-setup.
This example assumes an Earthfile exists with a +build
target:
Alternatively, you can skip using the earthly/actions-setup
job and include a step to download earthly instead:
For a complete guide on CI integration see the CI integration guide.
actions/checkout ref argument
The example deliberately does not use the ref
actions/checkout@v3
option, as it can lead to inconsistent builds where a user chooses to re-run an older commit which is no longer at the head of the branch.
Last updated