Skip to content

Commit fbbfe54

Browse files
committed
update build-image.yaml
1 parent 0dbcf79 commit fbbfe54

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/build-image.yaml

Lines changed: 7 additions & 4 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:
@@ -42,7 +45,7 @@ jobs:
4245
- name: Set up QEMU
4346
uses: docker/setup-qemu-action@v1
4447
with:
45-
platforms: all
48+
platforms: ${{ env.IMAGE_PLATFORMS }}
4649
- name: Set up Docker Buildx
4750
id: buildx
4851
uses: docker/setup-buildx-action@v1
@@ -52,8 +55,8 @@ jobs:
5255
with:
5356
builder: ${{ steps.buildx.outputs.name }}
5457
context: ./docker-image/
55-
platforms: linux/386,linux/amd64,linux/arm64,linux/arm/v7,linux/ppc64le
58+
platforms: ${{ env.IMAGE_PLATFORMS }}
5659
push: true
5760
tags: |
58-
ghcr.io/${GITHUB_REPOSITORY}:latest
59-
ghcr.io/${GITHUB_REPOSITORY}:${{needs.generate_tag.outputs.output}}
61+
ghcr.io/${{ env.GITHUB_REPOSITORY }}:latest
62+
ghcr.io/${{ env.GITHUB_REPOSITORY }}:${{ needs.generate_tag.outputs.output }}

0 commit comments

Comments
 (0)