Skip to content

Commit

Permalink
add caching to our docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
tomeichlersmith committed Nov 30, 2022
1 parent fd53962 commit 7ffc419
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ jobs:
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Cache Docker Layers on GitHub
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: ${{ runner.os }}-buildx
-
name: Get Build Context
uses: actions/checkout@v3
Expand All @@ -38,6 +45,8 @@ jobs:
with:
push: false # don't push to docker hub yet
load: true # allow image to be availabe to the docker program later in this job
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
tags: new-build
-
name: Package Image
Expand Down

0 comments on commit 7ffc419

Please sign in to comment.