From 883ca3ba42b9bc1ef49843cf18e30c8757a8e1df Mon Sep 17 00:00:00 2001 From: Puja Deep <105225025+PujaVad@users.noreply.github.com> Date: Fri, 10 May 2024 18:09:06 +0530 Subject: [PATCH] Use latest docker/build-push-action with provenance set to false Known issue and resolution: https://github.com/docker/build-push-action/issues/820 --- .github/workflows/build-test-publish.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-test-publish.yml b/.github/workflows/build-test-publish.yml index ac9461b9..2ead91a3 100644 --- a/.github/workflows/build-test-publish.yml +++ b/.github/workflows/build-test-publish.yml @@ -94,12 +94,12 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push - # Do not bump below action version (Known issue - https://github.com/docker/build-push-action/issues/820) - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: context: . push: true platforms: linux/amd64, linux/arm64 + provenance: false tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - name: OCI Metadata for single-arch amd64 image @@ -114,11 +114,11 @@ jobs: type=semver,pattern={{version}},suffix=-amd64,latest=false type=sha,suffix=-amd64,latest=false - name: Build and push single-arch amd64 image - # Do not bump below action version (Known issue - https://github.com/docker/build-push-action/issues/820) - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: context: . platforms: linux/amd64 + provenance: false push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.single-arch-meta-amd64.outputs.tags }} labels: ${{ steps.single-arch-meta-amd64.outputs.labels }} @@ -134,11 +134,11 @@ jobs: type=semver,pattern={{version}},suffix=-arm64,latest=false type=sha,suffix=-arm64,latest=false - name: Build and push single-arch arm64 image - # Do not bump below action version (Known issue - https://github.com/docker/build-push-action/issues/820) - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: context: . platforms: linux/arm64 + provenance: false push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.single-arch-meta-arm64.outputs.tags }} labels: ${{ steps.single-arch-meta-arm64.outputs.labels }}