From cdf53c52884a530392bf24e4295304a4f818261c Mon Sep 17 00:00:00 2001 From: Duncan Tourolle Date: Sat, 10 Jan 2026 21:01:08 +0100 Subject: [PATCH] Add docker to simplify build --- .gitea/workflows/build.yaml | 8 ++------ .gitea/workflows/release.yaml | 8 ++------ Dockerfile.build | 13 +++++++++++++ 3 files changed, 17 insertions(+), 12 deletions(-) create mode 100644 Dockerfile.build diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index afe09fe..c23ea76 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -16,14 +16,13 @@ on: jobs: build: runs-on: ubuntu-latest + container: + image: gitea.tourolle.paris/dtourolle/jellypod-builder:latest steps: - name: Checkout repository uses: actions/checkout@v4 - - name: Verify .NET installation - run: dotnet --version - - name: Restore dependencies run: dotnet restore Jellyfin.Plugin.Jellypod.sln @@ -36,10 +35,7 @@ jobs: - name: Build Jellyfin Plugin id: jprm run: | - # Create artifacts directory for JPRM output mkdir -p artifacts - - # Build plugin using JPRM jprm --verbosity=debug plugin build . # Find the generated zip file diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index eec1df5..44287fa 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -14,14 +14,13 @@ on: jobs: build-and-release: runs-on: ubuntu-latest + container: + image: gitea.tourolle.paris/dtourolle/jellypod-builder:latest steps: - name: Checkout repository uses: actions/checkout@v4 - - name: Verify .NET installation - run: dotnet --version - - name: Get version id: get_version run: | @@ -52,10 +51,7 @@ jobs: - name: Build Jellyfin Plugin id: jprm run: | - # Create artifacts directory for JPRM output mkdir -p artifacts - - # Build plugin using JPRM jprm --verbosity=debug plugin build ./ # Find the generated zip file diff --git a/Dockerfile.build b/Dockerfile.build new file mode 100644 index 0000000..ea44b07 --- /dev/null +++ b/Dockerfile.build @@ -0,0 +1,13 @@ +FROM mcr.microsoft.com/dotnet/sdk:8.0 + +# Install Python and pip for JPRM +RUN apt-get update && apt-get install -y \ + python3 \ + python3-pip \ + jq \ + && rm -rf /var/lib/apt/lists/* + +# Install JPRM +RUN pip install --break-system-packages jprm + +WORKDIR /src