diff --git a/.github/workflows/build-and-push.yml b/.github/workflows/build-and-push.yml index ce2953e..6aee1f0 100644 --- a/.github/workflows/build-and-push.yml +++ b/.github/workflows/build-and-push.yml @@ -35,15 +35,6 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Cache Docker layers - uses: actions/cache@v3 - with: - path: /tmp/.buildx-cache # Or a custom path for your cache - key: ${{ runner.os }}-docker-${{ hashFiles('Dockerfile') }}-${{ hashFiles('src/**') }} # Example key - restore-keys: | - ${{ runner.os }}-docker-${{ hashFiles('Dockerfile') }}- - ${{ runner.os }}-docker- - - name: Extract metadata for Docker id: meta uses: docker/metadata-action@v5 @@ -61,4 +52,7 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file + labels: ${{ steps.meta.outputs.labels }} + # Enable GitHub Actions cache (recommended over actions/cache) + cache-from: type=gha + cache-to: type=gha,mode=max \ No newline at end of file