Room switching, client performance, connection resilience, player controls, cinema mode, Jellyfin over HLS #457
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
| 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 |