Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Commit

Permalink
ci: Set up Bazel cache
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy351 committed Oct 27, 2023
1 parent 182e014 commit 19c3d13
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@ jobs:
tags: |
type=sha
type=raw,value=latest,enable={{is_default_branch}}
- name: Set up Bazel cache
uses: actions/cache@v3
with:
path: bazel-cache
key: bazel-${{ hashFiles('Dockerfile') }}
restore-keys: bazel-
- name: Inject Bazel cache into Docker
uses: reproducible-containers/[email protected]
with:
cache-source: bazel-cache
cache-target: /root/.cache/bazel
- name: Build and push
uses: docker/build-push-action@v5
with:
Expand Down

0 comments on commit 19c3d13

Please sign in to comment.