From 5aabc6a7a1c7e8f01d3178bacff56fcf56e1b7b6 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sat, 7 Jun 2025 16:41:02 -0400 Subject: [PATCH] Add temporary Docker builder --- .../workflows/preview-build-docker-only.yaml | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/preview-build-docker-only.yaml diff --git a/.github/workflows/preview-build-docker-only.yaml b/.github/workflows/preview-build-docker-only.yaml new file mode 100644 index 0000000..fc0a987 --- /dev/null +++ b/.github/workflows/preview-build-docker-only.yaml @@ -0,0 +1,53 @@ +name: "Preview Build" + +on: + workflow_dispatch: + # Manual trigger (from bot) + inputs: + version: + required: true + type: string + description: 'The server and web stable release tag (i.e. "vX.Y.Z")' + preview_id: + required: true + type: string + description: 'The numerical preview ID (e.g. 1 for `rc1`)' + +env: + SDK_VERSION: "9.0.x" + +permissions: + contents: read + +jobs: + Docker: + runs-on: ubuntu-24.04 + continue-on-error: false # true in prod, false for testing + steps: + - name: "Set dated version for unstable builds" + id: version + run: |- + echo "JELLYFIN_VERSION=${{ inputs.version }}-rc${{ inputs.preview_id }}" >> $GITHUB_ENV + echo "JELLYFIN_RELEASE_TYPE=preview" >> $GITHUB_ENV + echo "DEBUG_FLAG=--debug" >>$GITHUB_ENV + + - name: "Install dependencies" + run: |- + sudo apt-get update + sudo apt-get install --yes python3-git python3-yaml + + - name: "Checkout repository" + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + + - name: "Prepare repository" + run: |- + ./checkout.py ${{ inputs.version }}-rc${{ inputs.preview_id }} + + - name: "Run builder for Docker containers" + env: + DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} + DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }} + GHCR_USERNAME: ${{ secrets.GHCR_USERNAME }} + GHCR_TOKEN: ${{ secrets.GHCR_TOKEN }} + run: |- + sudo --preserve-env ./build.py ${{ env.JELLYFIN_VERSION }} docker ${{ env.DEBUG_FLAG }}