Skip to content

Commit 75a9dfd

Browse files
committed
Add a CI job to build all archs
1 parent 6617df0 commit 75a9dfd

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,38 @@ jobs:
1313
run: make docker-build
1414
- name: Test image
1515
run: make docker-test
16+
17+
build-all-archs:
18+
name: Push Docker image for all archs
19+
runs-on: ubuntu-latest
20+
strategy:
21+
fail-fast: false
22+
max-parallel: 2
23+
matrix:
24+
include:
25+
# All non supported by base image are commented
26+
# This is an example for the base image ruby (alpine variant)
27+
- { platform: "linux/arm64", platform-tag: "arm64" }
28+
- { platform: "linux/amd64", platform-tag: "amd64" }
29+
- { platform: "linux/arm/v7", platform-tag: "armv7" }
30+
- { platform: "linux/arm/v6", platform-tag: "armv6" }
31+
- { platform: "linux/ppc64le", platform-tag: "ppc64le" }
32+
#- { platform: "linux/riscv64", platform-tag: "riscv64" }
33+
- { platform: "linux/s390x", platform-tag: "s390x" }
34+
- { platform: "linux/386", platform-tag: "386" }
35+
#- { platform: "linux/mips64le", platform-tag: "mips64le" }
36+
#- { platform: "linux/mips64", platform-tag: "mips64" }
37+
steps:
38+
- name: Checkout repository
39+
uses: actions/checkout@v3
40+
# https://github.com/docker/setup-qemu-action
41+
- name: Set up QEMU
42+
uses: docker/setup-qemu-action@v2
43+
# https://github.com/docker/setup-buildx-action
44+
- name: Set up Docker Buildx
45+
uses: docker/setup-buildx-action@v2
46+
- name: Build image
47+
run: make docker-build
48+
env:
49+
DOCKER_BUILDKIT: 1
50+
PLATFORM: ${{ matrix.platform }}

0 commit comments

Comments
 (0)