Skip to content

Room switching, client performance, connection resilience, player controls, cinema mode, Jellyfin over HLS #457

Room switching, client performance, connection resilience, player controls, cinema mode, Jellyfin over HLS

Room switching, client performance, connection resilience, player controls, cinema mode, Jellyfin over HLS #457

Workflow file for this run

name: Docker build CI
on:
push:
branches: ['master']
pull_request:
branches: ['master']
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci --ignore-scripts
- run: npm run setup
# The containers bind-mount directories `npm run setup` created as the runner user, but
# .env.github hard-codes uid/gid 1000 and the runner is 1001. Postgres then cannot chown
# its data directory and exits during initdb. Take the uid/gid from the runner instead.
- run: |
cp .github/workflows/.env.github .env
sed -i "s/^DOCKER_UID=.*/DOCKER_UID=\"$(id -u)\"/" .env
sed -i "s/^DOCKER_GID=.*/DOCKER_GID=\"$(id -g)\"/" .env
grep -E '^DOCKER_(UID|GID)=' .env
- run: docker compose up -d
- name: Show container state on failure
if: failure()
run: docker compose ps -a && docker compose logs --tail=50