-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (45 loc) · 1.65 KB
/
build.yml
File metadata and controls
50 lines (45 loc) · 1.65 KB
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
40
41
42
43
44
45
46
47
48
49
50
name: Build docker image
permissions:
contents: read
on:
push:
branches:
- "*"
tags-ignore:
- "*"
jobs:
build-image:
name: Build the image
runs-on: ${{ matrix.run-on }}
strategy:
fail-fast: false
max-parallel: 4
matrix:
platform: ["linux/386"]
run-on: ["ubuntu-22.04"]
includes:
- { platform: "linux/amd64", run-on: "ubuntu-22.04" }
- { platform: "linux/ppc64le", run-on: "ubuntu-22.04" }
- { platform: "linux/s390x", run-on: "ubuntu-22.04" }
- { platform: "linux/riscv64", run-on: "ubuntu-22.04" }
- { platform: "linux/arm/v6", run-on: "ubuntu-22.04-arm" }
- { platform: "linux/arm/v7", run-on: "ubuntu-22.04-arm" }
- { platform: "linux/arm64/v8", run-on: "ubuntu-22.04-arm" }
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 build-alpine
env:
DOCKER_BUILDKIT: 1
PLATFORM: ${{ matrix.platform }}
- name: Test docker image
run: make test-alpine
env:
DOCKER_DEFAULT_PLATFORM: ${{ matrix.platform }}