fix(ci): update outdated GitHub actions #114
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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 |