Skip to content

Commit

Permalink
chore: update Earthfile and GitHub action configuration
Browse files Browse the repository at this point in the history
- Change Earthfile to import from main branch
- Add caching step in GitHub action for Earthly
- Remove commented import line in Earthfile
  • Loading branch information
flemzord committed Sep 26, 2024
1 parent 1b480cf commit d606e20
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/actions/env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ runs:
github-token: ${{ inputs.token }}
version: "latest"
use-cache: true
- name: Cache Earthly
uses: actions/cache@v4
with:
path: /root/.cache
key: ${{ runner.os }}-earthly
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
Expand All @@ -25,5 +30,4 @@ runs:
else
branch="${GITHUB_REF##*/}"
fi
git checkout -b "$branch" || true
git checkout -b "$branch" || true
3 changes: 2 additions & 1 deletion Earthfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
VERSION 0.8

IMPORT github.com/formancehq/earthly:tags/v0.16.2 AS core
IMPORT github.com/formancehq/earthly:main AS core
#IMPORT github.com/formancehq/earthly:tags/v0.16.2 AS core

FROM core+base-image

Expand Down

0 comments on commit d606e20

Please sign in to comment.