Skip to content

Commit

Permalink
cache builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico640 committed May 21, 2020
1 parent f6a6340 commit f389a68
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/docker-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,9 @@ jobs:
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
-
name: Build and push Docker image
run: docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t nico640/docker-unms:testing -f Dockerfile --push .
run: |
docker buildx build \
--platform linux/amd64,linux/arm64,linux/arm/v7 \
-t nico640/docker-unms:testing -f Dockerfile \
--push --cache-from type=local,src=/tmp/buildx-cache \
--cache-to type=local,dest=/tmp/buildx-cache .

0 comments on commit f389a68

Please sign in to comment.