Skip to content

Commit

Permalink
ci: improve buildx cache
Browse files Browse the repository at this point in the history
  • Loading branch information
vladkens committed Jul 28, 2024
1 parent e0d7c4c commit 7a2f391
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
echo ${GHCR_TOKEN} | docker login ghcr.io -u ${USERNAME} --password-stdin
docker buildx build --push \
--cache-from=type=gha --cache-to=type=gha,mode=max \
--cache-from=ghcr.io/${USERNAME}/ghstats:main \
--platform linux/amd64,linux/arm64 \
-t ghcr.io/${USERNAME}/ghstats:main .
Expand All @@ -36,6 +37,7 @@ jobs:
echo ${GHCR_TOKEN} | docker login ghcr.io -u ${USERNAME} --password-stdin
docker buildx build --push \
--cache-from=type=gha --cache-to=type=gha,mode=max \
--cache-from=ghcr.io/${USERNAME}/ghstats:main \
--platform linux/amd64,linux/arm64 \
-t ghcr.io/${USERNAME}/ghstats:${ref} -t ghcr.io/${USERNAME}/ghstats:latest .
Expand Down

0 comments on commit 7a2f391

Please sign in to comment.