Skip to content

Commit

Permalink
use cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Adafede committed Aug 23, 2024
1 parent 5a04504 commit 2b24363
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ jobs:
build-amd64:
runs-on: ubuntu-latest
steps:
- name: Cache Docker layers
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Prepare
run: |
echo "PLATFORM_PAIR=linux-amd64" >> $GITHUB_ENV
Expand Down Expand Up @@ -64,9 +72,14 @@ jobs:
build-arm64:
runs-on: warp-ubuntu-latest-arm64-2x
steps:
- name: WarpCache
uses: WarpBuilds/cache@v1.2.1

- name: Cache Docker layers
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Prepare
run: |
echo "PLATFORM_PAIR=linux-arm64" >> $GITHUB_ENV
Expand Down

0 comments on commit 2b24363

Please sign in to comment.