Skip to content

Commit

Permalink
layer caching
Browse files Browse the repository at this point in the history
  • Loading branch information
ckuhtz committed Jul 10, 2024
1 parent 00eebe9 commit d78cf0e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ jobs:
password: ${{ secrets.GHCR_TOKEN }}
logout: false

- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

Expand All @@ -42,3 +50,5 @@ jobs:
push: true
tags: ghcr.io/${{ github.repository_owner }}/hamframe-${{ matrix.directory }}:latest
platforms: ${{ matrix.platform }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache

0 comments on commit d78cf0e

Please sign in to comment.