Skip to content

Commit

Permalink
chore(.github/workflows/docker-image.yml): cache Docker layers and up…
Browse files Browse the repository at this point in the history
…date cache settings
  • Loading branch information
Nat1anWasTaken committed Jun 9, 2024
1 parent fc5523c commit 7d748ae
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

# Cache Docker layers
- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
# Login to GitHub Container Registry
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
Expand All @@ -31,3 +40,5 @@ jobs:
push: true
files: |
docker-bake.hcl
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache,new=true

0 comments on commit 7d748ae

Please sign in to comment.