diff --git a/.github/workflows/docker-develop.yml b/.github/workflows/docker-develop.yml index d396e4c7dc..5b5868540a 100644 --- a/.github/workflows/docker-develop.yml +++ b/.github/workflows/docker-develop.yml @@ -23,6 +23,14 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1.3.0 + - name: Cache Docker layers + uses: actions/cache@v2.1.6 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-buildx-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-buildx- + - name: Login to DockerHub uses: docker/login-action@v1.9.0 with: @@ -33,4 +41,14 @@ jobs: uses: docker/build-push-action@v2.5.0 with: tags: iotaledger/goshimmer:develop - push: true \ No newline at end of file + push: true + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-new + + - # Temp fix + # https://github.com/docker/build-push-action/issues/252 + # https://github.com/moby/buildkit/issues/1896 + name: Move cache + run: | + rm -rf /tmp/.buildx-cache + mv /tmp/.buildx-cache-new /tmp/.buildx-cache