Skip to content

Commit

Permalink
add build cache
Browse files Browse the repository at this point in the history
  • Loading branch information
BigBoot committed Nov 14, 2024
1 parent 3c7251c commit 5dba5f5
Show file tree
Hide file tree
Showing 5 changed files with 737 additions and 434 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,23 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Cache
uses: actions/cache@v3
id: cache
with:
path: |
cache
key: cache-${{ runner.os }}-${{ runner.arch }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: inject cache into docker
uses: reproducible-containers/[email protected]
with:
cache-map: |
{
"cache": "/cache"
}
skip-extraction: ${{ steps.cache.outputs.cache-hit }}

- name: Build and push
id: docker_build
uses: docker/build-push-action@v5
Expand Down
Loading

0 comments on commit 5dba5f5

Please sign in to comment.