From 9aaa02ea6f15e340d13692853c9126576f5e6bb4 Mon Sep 17 00:00:00 2001 From: Wang Guan Date: Sat, 23 Sep 2023 16:06:58 +0900 Subject: [PATCH] build multiarch docker image --- .github/workflows/deploy-image.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-image.yml b/.github/workflows/deploy-image.yml index 4a48bc5..5398d68 100644 --- a/.github/workflows/deploy-image.yml +++ b/.github/workflows/deploy-image.yml @@ -35,10 +35,14 @@ jobs: with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + - name: Setup docker buildx + uses: docker/setup-buildx-action@v2 + - name: Build and push Docker image - uses: docker/build-push-action@v3.1.1 + uses: docker/build-push-action@v4.2.1 with: context: . push: true + platforms: linux/arm64,linux/amd64 tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}