File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 name=ghcr.io/${{ github.repository }}-web
2020 name=githubyumao/mcsmanager-web,enable=${{ github.repository == 'MCSManager/MCSManager' }}
2121
22+ - name : Set up QEMU
23+ uses : docker/setup-qemu-action@v3
24+
2225 - name : Set up Docker Buildx
2326 uses : docker/setup-buildx-action@v3
2427
4144 with :
4245 file : dockerfile/web.dockerfile
4346 push : true
47+ platforms : linux/amd64,linux/arm64
4448 tags : ${{ steps.meta_web.outputs.tags }}
4549 labels : ${{ steps.meta_web.outputs.labels }}
50+ build-args : |
51+ BUILDPLATFORM=linux/amd64
4652
4753 build-daemon :
4854 runs-on : ubuntu-latest
6369 name=ghcr.io/${{ github.repository }}-daemon-jdk${{ matrix.java_version }}
6470 name=githubyumao/mcsmanager-daemon-jdk${{ matrix.java_version }},enable=${{ github.repository == 'MCSManager/MCSManager' }}
6571
72+ - name : Set up QEMU
73+ uses : docker/setup-qemu-action@v3
74+
6675 - name : Set up Docker Buildx
6776 uses : docker/setup-buildx-action@v3
6877
8594 with :
8695 file : dockerfile/daemon.dockerfile
8796 push : true
97+ platforms : linux/amd64,linux/arm64
8898 tags : ${{ steps.meta_daemon.outputs.tags }}
8999 labels : ${{ steps.meta_daemon.outputs.labels }}
90100 build-args : |
101+ BUILDPLATFORM=linux/amd64
91102 JAVA_RUNTIME=${{ matrix.java_version }}
Original file line number Diff line number Diff line change 11ARG EMBEDDED_JAVA_VERSION=21
2+ ARG BUILDPLATFORM=linux/amd64
23
3- FROM node:lts AS builder
4+ FROM --platform=${BUILDPLATFORM} node:lts AS builder
45
56WORKDIR /src
67COPY . /src
Original file line number Diff line number Diff line change 1- FROM node:lts AS builder
1+ ARG BUILDPLATFORM=linux/amd64
2+ FROM --platform=${BUILDPLATFORM} node:lts AS builder
23
34WORKDIR /src
45COPY . /src
You can’t perform that action at this time.
0 commit comments