diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 051c292..1f28f64 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -18,6 +18,9 @@ jobs: - name: Checkout uses: actions/checkout@v3 + - name: Setup Buildx + uses: docker/setup-buildx-action@v2 + - name: Login to GitHub Container Registry if: github.event_name != 'pull_request' uses: docker/login-action@v2 @@ -37,6 +40,8 @@ jobs: uses: docker/build-push-action@v4 with: context: . + cache-from: type=gha + cache-to: type=gha,mode=max push: ${{github.event_name != 'pull_request'}} tags: ${{steps.meta.outputs.tags}} labels: ${{steps.meta.outputs.labels}}