Skip to content

Commit

Permalink
fix: added cache-to
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnny-Knighten committed Nov 5, 2023
1 parent 8dc983f commit 5840b90
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/docker-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,7 @@ jobs:
- name: Lint Dockerfile
uses: hadolint/hadolint-action@v1.5.0
with:
dockerfile: "Dockerfile"

- name: Build the Docker image
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile
push: false
load: true
tags: johnnyknighten/test:latest
dockerfile: "Dockerfile"

- name: ${{ env.ACT || 'Cache Docker Layers' }}
uses: actions/cache@v3
Expand All @@ -37,6 +28,16 @@ jobs:
restore-keys: |
${{ runner.os }}-buildx-
- name: Build the Docker image
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile
push: false
load: true
tags: johnnyknighten/test:latest
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max

container-tests:
runs-on: ubuntu-latest
needs:
Expand Down

0 comments on commit 5840b90

Please sign in to comment.