Skip to content

Commit 429edae

Browse files
utsavanand2alexellis
authored andcommitted
Build multi-arch image in CI builds
Signed-off-by: Utsav Anand <[email protected]>
1 parent 9ec3187 commit 429edae

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/build.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,21 @@ jobs:
4040
REPO_URL=https://github.com/${{ env.USER_REPO }}
4141
load: true
4242
tags: openfaas/faas-cli:${{ github.sha }}
43-
-
44-
name: Local docker build (root image)
43+
-
44+
name: Test for multi-arch build
4545
uses: docker/build-push-action@v2
4646
with:
4747
context: .
4848
file: ./Dockerfile
4949
push: false
50-
platforms: linux/amd64
50+
load: false
51+
platforms: linux/amd64,linux/arm/v7,linux/arm64
5152
target: release
5253
build-args: |
5354
VERSION=latest-dev
5455
GIT_COMMIT=${{ github.sha }}
5556
REPO_URL=https://github.com/${{ env.USER_REPO }}
56-
tags: openfaas/faas-cli:${{ github.sha }}-root
57+
tags: openfaas/faas-cli:${{ github.sha }}
5758
-
5859
name: Copy binary to host
5960
run: |

0 commit comments

Comments
 (0)