-
Notifications
You must be signed in to change notification settings - Fork 188
Add f41 image building and modify weekly cache workflow. #752
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+103
−310
Merged
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
8ff558b
Add f41 image building and modify weekly cache workflow.
nszczygl9 d1f067f
install additional libraries
nszczygl9 2e3bfb7
Fix yamllint
nszczygl9 71ffb38
modify weekly cache workflow
nszczygl9 8082e20
Merge branch 'main' into nsz-build-fedora
nszczygl9 3300b57
fix copilot findings
nszczygl9 8ffcde8
Merge branch 'main' into nsz-build-fedora
nszczygl9 25d4473
fix yamllint
nszczygl9 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| 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: | ||
nszczygl9 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| 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 | ||
nszczygl9 marked this conversation as resolved.
Show resolved
Hide resolved
nszczygl9 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| 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 | ||
nszczygl9 marked this conversation as resolved.
Show resolved
Hide resolved
nszczygl9 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| - name: Log in to GitHub Container Registry | ||
| uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 #4.0.0 | ||
nszczygl9 marked this conversation as resolved.
Show resolved
Hide resolved
nszczygl9 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| 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 | ||
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.