Skip to content

Commit

Permalink
ci: use cache in test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
thalesmg committed Oct 19, 2023
1 parent d83e73f commit f0a51dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,15 @@ jobs:
uses: docker/build-push-action@v5
with:
push: true
cache-from: type=local,src=/tmp/.docker-buildx-cache,mode=max
platforms: ${{ matrix.platform[1] }}
tags: localhost:5000/${{ github.repository }}/base-${{ matrix.base_image_vsn }}:${{ matrix.platform[0] }}
file: ${{ matrix.platform[0] }}/Dockerfile
context: .
- uses: docker/build-push-action@v5
with:
platforms: ${{ matrix.platform[1] }}
cache-from: type=local,src=/tmp/.docker-buildx-cache,mode=max
build-args: |
BUILD_FROM=localhost:5000/${{ github.repository }}/base-${{ matrix.base_image_vsn }}:${{ matrix.platform[0] }}
OTP_VERSION=${{ matrix.otp }}
Expand Down

0 comments on commit f0a51dd

Please sign in to comment.