Skip to content

Commit 5e146d0

Browse files
committed
Build multiple archs in test mode
1 parent 1636b2d commit 5e146d0

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
name: Build and test container
2+
3+
permissions:
4+
contents: read
5+
26
on: [push]
37

48
jobs:
5-
build:
9+
build-image:
610
runs-on: ubuntu-latest
11+
name: Build and test docker image (${{ matrix.platform }})
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
# linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x
16+
platform: ["linux/amd64", "linux/arm/v7", "linux/arm64/v8"]
717
steps:
818
- name: Checkout repository
919
uses: actions/checkout@v3
@@ -13,9 +23,12 @@ jobs:
1323
# https://github.com/docker/setup-buildx-action
1424
- name: Set up Docker Buildx
1525
uses: docker/setup-buildx-action@v2
16-
- name: Build image
26+
- name: Build docker image
1727
run: make docker-build
1828
env:
1929
DOCKER_BUILDKIT: 1
20-
- name: Test image
30+
PLATFORM: "${{ matrix.platform }}"
31+
- name: Test docker image
2132
run: make test
33+
env:
34+
PLATFORM: "${{ matrix.platform }}"

0 commit comments

Comments
 (0)