Add docker to simplify build
Some checks failed
🧪 Test Plugin / test (push) Successful in 1m10s
🏗️ Build Plugin / build (push) Failing after 20m0s
🚀 Release Plugin / build-and-release (push) Failing after 2m46s

This commit is contained in:
Duncan Tourolle 2026-01-10 21:01:08 +01:00
parent 6be05158d0
commit cdf53c5288
3 changed files with 17 additions and 12 deletions

View File

@ -16,14 +16,13 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: gitea.tourolle.paris/dtourolle/jellypod-builder:latest
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Verify .NET installation
run: dotnet --version
- name: Restore dependencies - name: Restore dependencies
run: dotnet restore Jellyfin.Plugin.Jellypod.sln run: dotnet restore Jellyfin.Plugin.Jellypod.sln
@ -36,10 +35,7 @@ jobs:
- name: Build Jellyfin Plugin - name: Build Jellyfin Plugin
id: jprm id: jprm
run: | run: |
# Create artifacts directory for JPRM output
mkdir -p artifacts mkdir -p artifacts
# Build plugin using JPRM
jprm --verbosity=debug plugin build . jprm --verbosity=debug plugin build .
# Find the generated zip file # Find the generated zip file

View File

@ -14,14 +14,13 @@ on:
jobs: jobs:
build-and-release: build-and-release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: gitea.tourolle.paris/dtourolle/jellypod-builder:latest
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Verify .NET installation
run: dotnet --version
- name: Get version - name: Get version
id: get_version id: get_version
run: | run: |
@ -52,10 +51,7 @@ jobs:
- name: Build Jellyfin Plugin - name: Build Jellyfin Plugin
id: jprm id: jprm
run: | run: |
# Create artifacts directory for JPRM output
mkdir -p artifacts mkdir -p artifacts
# Build plugin using JPRM
jprm --verbosity=debug plugin build ./ jprm --verbosity=debug plugin build ./
# Find the generated zip file # Find the generated zip file

13
Dockerfile.build Normal file
View File

@ -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