fedora-34: add gmp-devel #43
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
# | |
# We only publish docker files on a push AND if the tpm2-software is the org. | |
# This way forks don't try to build AND publish | |
# | |
name: Publish | |
on: | |
push | |
jobs: | |
publish-image: | |
name: Publish 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" | |
] | |
if: "github.repository_owner == 'tpm2-software'" | |
steps: | |
- | |
name: Check out the repo | |
uses: actions/checkout@v3 | |
- | |
name: Check Diff for Changes | |
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@v2 | |
if: env.GIT_DIFF | |
- | |
name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
if: env.GIT_DIFF | |
- | |
name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
if: env.GIT_DIFF | |
- | |
name: Push to GitHub Packages | |
uses: docker/build-push-action@v4 | |
with: | |
push: true | |
context: . | |
file: ./${{ matrix.distro }}.docker | |
tags: ghcr.io/${{ github.repository_owner }}/${{ matrix.distro }}:latest | |
if: env.GIT_DIFF |