From f389a685ad77942d7bffee649d147f6ccef5ef69 Mon Sep 17 00:00:00 2001 From: Nico640 Date: Thu, 21 May 2020 21:04:04 +0200 Subject: [PATCH] cache builds --- .github/workflows/docker-test.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-test.yml b/.github/workflows/docker-test.yml index 0d71daf..050cf2d 100644 --- a/.github/workflows/docker-test.yml +++ b/.github/workflows/docker-test.yml @@ -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 .