Skip to content

Commit

Permalink
chore: docker multi-platform build
Browse files Browse the repository at this point in the history
  • Loading branch information
fuxingloh committed Mar 18, 2024
1 parent 2324d9a commit 05cf67e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/solana-container/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
"*": [
Expand Down

0 comments on commit 05cf67e

Please sign in to comment.