From d211f0f4747a55b2f7c17fe5b60a5a95d1e409c8 Mon Sep 17 00:00:00 2001 From: boojack Date: Sun, 3 Jul 2022 20:54:42 +0800 Subject: [PATCH] chore: support multi-plantform for docker --- .github/workflows/build-and-push-dev-image.yml | 3 ++- .github/workflows/build-and-push-release-image.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-push-dev-image.yml b/.github/workflows/build-and-push-dev-image.yml index 1b3ffdbe..ea1d4d80 100644 --- a/.github/workflows/build-and-push-dev-image.yml +++ b/.github/workflows/build-and-push-dev-image.yml @@ -23,9 +23,10 @@ jobs: - name: Build and Push id: docker_build - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: context: ./ file: ./Dockerfile + platforms: linux/amd64,linux/arm64 push: true tags: neosmemo/memos:dev diff --git a/.github/workflows/build-and-push-release-image.yml b/.github/workflows/build-and-push-release-image.yml index 13933c20..b057034a 100644 --- a/.github/workflows/build-and-push-release-image.yml +++ b/.github/workflows/build-and-push-release-image.yml @@ -30,9 +30,10 @@ jobs: - name: Build and Push id: docker_build - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: context: ./ file: ./Dockerfile + platforms: linux/amd64,linux/arm64 push: true tags: neosmemo/memos:${{ env.VERSION }}