From 6b797387a1ff546e6201a01f6f919a44d9f6e112 Mon Sep 17 00:00:00 2001 From: ConfusedPolarBear <33811686+ConfusedPolarBear@users.noreply.github.com> Date: Thu, 16 Jun 2022 17:25:43 -0500 Subject: [PATCH] Create container.yml --- .github/workflows/container.yml | 40 +++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/container.yml diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml new file mode 100644 index 0000000..670fe37 --- /dev/null +++ b/.github/workflows/container.yml @@ -0,0 +1,40 @@ +name: Rebuild container + +on: + release: + types: [published] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14.x] + + steps: + - uses: actions/checkout@v3 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Checkout modified web interface + uses: actions/checkout@v3 + with: + repository: https://github.com/ConfusedPolarBear/jellyfin-web + ref: intros + path: web + + - name: Build and copy web interface + run: | + cd web + npm install + cp -r dist ../docker/ + + - name: Build container + uses: docker/build-push-action@v3.0.0 + with: + file: docker/Dockerfile + context: docker/