Skip to content

Commit

Permalink
chore(workflows): enhance caching for Earthly commands
Browse files Browse the repository at this point in the history
Update `earthly` commands in `releases.yml` and `main.yml` to use
inline cache and push to remote cache at `ghcr.io/formancehq/earthly`.
  • Loading branch information
flemzord committed Sep 26, 2024
1 parent 8f4ca6c commit 55f5c80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
token: ${{ secrets.NUMARY_GITHUB_TOKEN }}
- run: >
earthly
--no-output
--no-output --use-inline-cache --save-inline-cache --remote-cache=ghcr.io/formancehq/earthly --push
--allow-privileged
--secret SPEAKEASY_API_KEY=$SPEAKEASY_API_KEY
${{ contains(github.event.pull_request.labels.*.name, 'no-cache') && '--no-cache' || '' }}
Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:
password: ${{ secrets.NUMARY_GITHUB_TOKEN }}
- run: >
earthly
--no-output
--no-output --use-inline-cache --save-inline-cache --remote-cache=ghcr.io/formancehq/earthly --push
--allow-privileged
--secret SPEAKEASY_API_KEY=$SPEAKEASY_API_KEY
--secret GITHUB_TOKEN=$GITHUB_TOKEN
Expand Down Expand Up @@ -142,7 +142,7 @@ jobs:
ARGOCD_REGION_AUTH_TOKEN: ${{ secrets.ARGOCD_REGION_AUTH_TOKEN }}
run: >
earthly
--no-output
--no-output --use-inline-cache --save-inline-cache --remote-cache=ghcr.io/formancehq/earthly --push
--secret AUTH_TOKEN=$ARGOCD_REGION_AUTH_TOKEN
+deploy-staging
--TAG=$TAG
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
password: ${{ secrets.NUMARY_GITHUB_TOKEN }}
- run: >
earthly
--no-output
--no-output --use-inline-cache --save-inline-cache --remote-cache=ghcr.io/formancehq/earthly --push
--allow-privileged
--secret SPEAKEASY_API_KEY=$SPEAKEASY_API_KEY
--secret GITHUB_TOKEN=$GITHUB_TOKEN
Expand Down

0 comments on commit 55f5c80

Please sign in to comment.