-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1.11 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Build docker image
permissions:
contents: read
on:
push:
branches:
- "*"
tags-ignore:
- "*"
jobs:
build-image:
name: Build the image
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 4
matrix:
platform: ["linux/arm/v6", "linux/arm/v7", "linux/arm64/v8", "linux/386", "linux/ppc64le", "linux/amd64"]
steps:
- name: Checkout repository
uses: actions/checkout@v4
# https://github.com/docker/setup-qemu-action
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
# https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build docker image
run: make docker-build
env:
DOCKER_BUILDKIT: 1
PLATFORM: ${{ matrix.platform }}
- name: Test image
if: ${{ matrix.platform == 'linux/amd64' }}
run: make docker-test