From 23e06777e758830c21d8b28ef27e9de730218fe2 Mon Sep 17 00:00:00 2001 From: bkellam Date: Fri, 6 Sep 2024 10:36:41 -0700 Subject: [PATCH] nit --- .github/workflows/ghcr-publish.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ghcr-publish.yml b/.github/workflows/ghcr-publish.yml index b292c70a..52979622 100644 --- a/.github/workflows/ghcr-publish.yml +++ b/.github/workflows/ghcr-publish.yml @@ -67,15 +67,17 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Push to GitHub Packages - uses: docker/build-push-action@v2 + - name: Build and push Docker image + id: build-and-push + uses: docker/build-push-action@v5 with: context: . push: ${{ github.event_name != 'pull_request' }} - platforms: linux/amd64,linux/arm64 - file: ./Dockerfile tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + cache-from: type=gha + cache-to: type=gha,mode=max + platforms: linux/amd64,linux/arm64 # Sign the resulting Docker image digest except on PRs. # This will only write to the public Rekor transparency log when the Docker