Skip to content

Commit

Permalink
chore: add fedora41 to images (#16)
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Gershman <[email protected]>
  • Loading branch information
romange authored Mar 3, 2025
1 parent ea70ac8 commit 71bf05f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
build_dev:
strategy:
max-parallel: 6
matrix:
matrix:
distro:
- name: "alpine-dev"
tag: latest
Expand All @@ -36,6 +36,9 @@ jobs:
- name: "ubuntu-dev"
tag: 24
file: u24.04-dev.Dockerfile
- name: "fedora"
tag: 41
file: fedora41-dev.Dockerfile
# - container: "benchmark-dev:latest"
# file: benchmark-dev.Dockerfile
image:
Expand All @@ -46,7 +49,7 @@ jobs:

runs-on: ${{ matrix.image.name }}
env:
image_base: ghcr.io/${{ github.repository_owner }}/${{ matrix.distro.name }}
image_base: ghcr.io/${{ github.repository_owner }}/${{ matrix.distro.name }}
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
Expand All @@ -57,7 +60,7 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Collect Docker metadata
id: metadata
uses: docker/metadata-action@v5
Expand All @@ -70,7 +73,7 @@ jobs:
with:
context: .
provenance: false
platforms: linux/${{ matrix.image.arch }}
platforms: linux/${{ matrix.image.arch }}
file: ${{ matrix.distro.file }}
labels: ${{ steps.metadata.outputs.labels }}
outputs: type=image,name=${{ env.image_base }},push-by-digest=true,name-canonical=true,push=true
Expand All @@ -81,13 +84,13 @@ jobs:
- name: Test Docker image
run: docker run --rm "${{ env.image_base }}:sha256@${{ steps.build.outputs.digest }}" echo succeeded

- name: Export digest
run: |
mkdir -p /tmp/digests
digest="${{ steps.build.outputs.digest }}"
touch "/tmp/digests/${digest#sha256:}"
- name: Upload digest
uses: actions/upload-artifact@v4
with:
Expand All @@ -101,7 +104,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
image:
image:
- name: alpine-dev
tag: latest
- name: ubuntu-dev
Expand All @@ -112,6 +115,9 @@ jobs:
tag: 24
- name: fedora
tag: 30
- name: fedora
tag: 41

env:
image_base: ghcr.io/${{ github.repository_owner }}/${{ matrix.image.name }}
image: ghcr.io/${{ github.repository_owner }}/${{ matrix.image.name }}:${{matrix.image.tag}}
Expand All @@ -131,13 +137,13 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Collect Docker metadata
id: metadata
uses: docker/metadata-action@v5
with:
images: ${{ env.image_base }}

- name: Create and push merged image
working-directory: /tmp/digests
run: |
Expand Down
7 changes: 7 additions & 0 deletions fedora41-dev.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# syntax=docker/dockerfile:1
FROM fedora:41

RUN dnf install -y automake boost-devel bison ccache cmake gcc-c++ git \
libtool make ninja-build \
openssl-devel libunwind-devel autoconf-archive patch \
pcre2-devel python3-devel python3-pip zlib-devel gdb

0 comments on commit 71bf05f

Please sign in to comment.