-
Notifications
You must be signed in to change notification settings - Fork 19
59 lines (57 loc) · 1.57 KB
/
main.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#
# Build Docker Images for both pull_request and push operations
#
name: Build Status
on:
[ pull_request, workflow_dispatch]
permissions:
contents: read
jobs:
publish-image:
name: Build Docker Images
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
distro: [
"fedora-32", "fedora-32-ossl3", "fedora-34", "fedora-34-libressl",
"opensuse-leap-15.2", "opensuse-leap", "opensuse-leap-ossl3",
"ubuntu-18.04", "ubuntu-20.04",
"ubuntu-20.04.arm32v7", "ubuntu-20.04.arm64v8",
"fedora-32.ppc64le",
"alpine-3.15",
"ubuntu-20.04-ossl3", "ubuntu-22.04", "ubuntu-22.04-mbedtls-3.1"
]
steps:
-
name: Check out the repo
uses: actions/checkout@v4
-
name: Check Diff for Changes
# TODO replace get-diff-action, as it is no longer maintained since 2023-11-24
uses: technote-space/get-diff-action@v6
with:
FILES: |
${{ matrix.distro }}.docker.m4
PATTERNS: |
modules/*
-
name: Build the Dockerfiles
run: make -j $(nproc)
if: env.GIT_DIFF
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
if: env.GIT_DIFF
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
if: env.GIT_DIFF
-
name: Build Docker Images
uses: docker/build-push-action@v6
with:
push: false
context: .
file: ./${{ matrix.distro }}.docker
if: env.GIT_DIFF