From 05cf67e311e76b17f6fd1078649f4a29c2ed9329 Mon Sep 17 00:00:00 2001 From: Fuxing Loh Date: Mon, 18 Mar 2024 16:54:56 +0800 Subject: [PATCH] chore: docker multi-platform build --- .github/workflows/release.yml | 4 ++++ packages/solana-container/package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 885218c..a46ccdf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -88,6 +88,10 @@ jobs: username: ${{ github.actor }} password: ${{ github.token }} + - uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0 + with: + platforms: linux/amd64,linux/arm64 + - run: docker buildx create --use --bootstrap --driver=docker-container - run: pnpm -r exec npm version ${{ needs.version.outputs.result }} --git-tag-version=false diff --git a/packages/solana-container/package.json b/packages/solana-container/package.json index 34edac6..85fff40 100644 --- a/packages/solana-container/package.json +++ b/packages/solana-container/package.json @@ -5,7 +5,7 @@ "license": "MPL-2.0", "scripts": { "build:docker": "docker build -t ghcr.io/fuxingloh/solana-container:$(node -p \"require('./version.js')\") -f Dockerfile ../../ --build-arg SOLANA_VERSION=$(node -p \"require('./version.js')\")", - "push:docker": "docker buildx build -t ghcr.io/fuxingloh/solana-container:$(node -p \"require('./version.js')\") -f Dockerfile ../../ --output type=registry --platform linux/amd64 --build-arg SOLANA_VERSION=$(node -p \"require('./version.js')\")" + "push:docker": "docker buildx build -t ghcr.io/fuxingloh/solana-container:$(node -p \"require('./version.js')\") -f Dockerfile ../../ --output type=registry --platform linux/amd64,linux/arm64 --build-arg SOLANA_VERSION=$(node -p \"require('./version.js')\")" }, "lint-staged": { "*": [