Skip to content

Commit

Permalink
ci: Introduce build caching (#421)
Browse files Browse the repository at this point in the history
* ci: Introduce build caching

* ci: Switch to gha cache

* ci: Add buildx step
  • Loading branch information
xiamaz committed Mar 29, 2024
1 parent ff7fa20 commit e9e7132
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ jobs:
tags: |
type=ref,event=branch
type=ref,event=pr
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
Expand All @@ -51,3 +52,5 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push: true
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit e9e7132

Please sign in to comment.