Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions .github/workflows/dls-build-fedora41-images.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: "[DLS] [F41] Build F41 image"
run-name: "[DLS] [F41] Build F41 image (by ${{ github.actor }})"
on:
workflow_call:
workflow_dispatch:
permissions: {}

env:
DLS_REL_PATH: "./dlstreamer"

jobs:
build:
name: "Build f41 img"
runs-on: dlstreamer
container:
image: fedora:41
permissions:
contents: read
packages: read
steps:
- name: Install dependencies
run: |
dnf update -y
dnf install -y git docker

- name: Check out dlstreamer repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #6.0.2
with:
persist-credentials: false
path: dlstreamer

- name: Init submodules
run: |
cd dlstreamer
git submodule update --init thirdparty/spdlog

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd #4.0.0

- name: Log in to GitHub Container Registry
uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 #4.0.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: 🚢 Build f41 img with cache from GHCR
env:
f41_img: ghcr.io/${{ github.repository }}/f41-img:${{ github.sha }}
f41_img_cached: ghcr.io/${{ github.repository }}/f41-img:buildcache
run: |
docker buildx build \
--load \
--target dlstreamer \
--tag "${f41_img}" \
--cache-from=type=registry,ref="${f41_img_cached}" \
-f ./dlstreamer/docker/fedora41/fedora41.Dockerfile \
${{ env.DLS_REL_PATH }}

- name: Clean up
if: always()
env:
f41_img: ghcr.io/${{ github.repository }}/f41-img:${{ github.sha }}
run: |
rm -rf dlstreamer
docker rmi ${f41_img} || true
7 changes: 7 additions & 0 deletions .github/workflows/dls-pr-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,13 @@ jobs:
with:
test-repo-branch: ${{ inputs.test-repo-branch }}
# -------------------------------------------------------- BUILDS & TESTS ---------------------------------------------------------
dls-build-fedora-img:
permissions:
contents: read
packages: read
name: "DLS BUILD: fedora41 img"
uses: ./.github/workflows/dls-build-fedora41-images.yaml

dls-build-sources-make-build:
permissions:
contents: read
Expand Down
Loading
Loading