build multiple arch
This commit is contained in:
parent
e3281baf98
commit
c01333658e
|
@ -29,10 +29,10 @@ jobs:
|
||||||
# run: |
|
# run: |
|
||||||
# cd /work
|
# cd /work
|
||||||
# make binary-frontend && echo "print contents of /work/dist" && ls -alt /work/dist
|
# make binary-frontend && echo "print contents of /work/dist" && ls -alt /work/dist
|
||||||
# - name: Set up QEMU
|
- name: Set up QEMU
|
||||||
# uses: docker/setup-qemu-action@v2
|
uses: docker/setup-qemu-action@v2
|
||||||
# with:
|
with:
|
||||||
# platforms: 'arm64,arm'
|
platforms: 'arm64,arm'
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
# Login against a Docker registry except on PR
|
# Login against a Docker registry except on PR
|
||||||
|
@ -50,6 +50,8 @@ jobs:
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v4
|
uses: docker/metadata-action@v4
|
||||||
with:
|
with:
|
||||||
|
flavor: |
|
||||||
|
latest=false
|
||||||
tags: |
|
tags: |
|
||||||
type=ref,enable=true,event=branch
|
type=ref,enable=true,event=branch
|
||||||
type=ref,enable=true,event=tag
|
type=ref,enable=true,event=tag
|
||||||
|
@ -59,7 +61,7 @@ jobs:
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
# platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
context: .
|
context: .
|
||||||
file: Dockerfile
|
file: Dockerfile
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
|
|
Loading…
Reference in New Issue