From 414833f16aaed62f660e4e71df9d1923c1de1f81 Mon Sep 17 00:00:00 2001 From: Yohsuke Fukai Date: Sat, 27 Jan 2024 22:33:51 +0900 Subject: [PATCH 1/2] updated docker publish --- .github/workflows/docker-publish.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 4906664..bfc2fe5 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -5,7 +5,7 @@ name: Docker # separate terms of service, privacy policy, and support # documentation. -on: +on: release: types: [ "published" ] pull_request: @@ -40,7 +40,7 @@ jobs: uses: sigstore/cosign-installer@v3.1.1 with: cosign-release: 'v2.2.1' - + # Workaround: https://github.com/docker/build-push-action/issues/461 - name: Setup Docker buildx uses: docker/setup-buildx-action@79abd3f86f79a9d68a23c75a09a9a85889262adf @@ -62,13 +62,13 @@ jobs: uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - + - name: Get the tag name run: echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV - + - name: Set up QEMU uses: docker/setup-qemu-action@v2 - + # Build and push Docker image with Buildx (don't push on PR) # https://github.com/docker/build-push-action - name: Build and push Docker image @@ -76,7 +76,7 @@ jobs: uses: docker/build-push-action@ac9327eae2b366085ac7f6a2d02df8aa8ead720a with: context: . - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64,linux/arm64/v8 push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} From b960cb652389be4419406ed703e8bf57d2df57d2 Mon Sep 17 00:00:00 2001 From: Yohsuke Fukai Date: Sat, 27 Jan 2024 22:37:59 +0900 Subject: [PATCH 2/2] updated docker build push action veersion --- .github/workflows/docker-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index bfc2fe5..e0e27db 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -73,7 +73,7 @@ jobs: # https://github.com/docker/build-push-action - name: Build and push Docker image id: build-and-push - uses: docker/build-push-action@ac9327eae2b366085ac7f6a2d02df8aa8ead720a + uses: docker/build-push-action@v5 with: context: . platforms: linux/amd64,linux/arm64/v8