Skip to content

Commit 5fd212c

Browse files
committed
fix: build only one aarch
1 parent 57f6c14 commit 5fd212c

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/build-image.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Build docker Image
22

3+
env:
4+
IMAGE_PLATFORMS: linux/386,linux/amd64,linux/arm64,linux/arm/v7,linux/ppc64le
5+
36
on:
47
workflow_dispatch:
58
push:
@@ -26,10 +29,6 @@ jobs:
2629
echo "::set-output name=tag::$(git describe --abbrev=0)"
2730
2831
build-image:
29-
strategy:
30-
matrix:
31-
platforms: [linux/386,linux/amd64,linux/arm64,linux/arm/v7,linux/ppc64le]
32-
3332
runs-on: ubuntu-latest
3433
needs: generate_tag
3534
steps:
@@ -46,7 +45,7 @@ jobs:
4645
- name: Set up QEMU
4746
uses: docker/setup-qemu-action@v1
4847
with:
49-
platforms: ${{ matrix.platforms }}
48+
platforms: ${{ env.IMAGE_PLATFORMS }}
5049
- name: Set up Docker Buildx
5150
id: buildx
5251
uses: docker/setup-buildx-action@v1
@@ -56,7 +55,7 @@ jobs:
5655
with:
5756
builder: ${{ steps.buildx.outputs.name }}
5857
context: ./docker-image/
59-
platforms: ${{ matrix.platforms }}
58+
platforms: ${{ env.IMAGE_PLATFORMS }}
6059
push: true
6160
tags: |
6261
ghcr.io/${{ github.repository }}:latest

0 commit comments

Comments
 (0)