dependabot[bot] 993dfdca11
ci(deps): bump docker/build-push-action from 3.1.0 to 3.1.1 (#82)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 3.1.0 to 3.1.1.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v3.1.0...v3.1.1)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-05 23:51:20 -05:00

84 lines
2.0 KiB
YAML

name: Publish container
on:
release:
types: [published]
workflow_dispatch:
env:
REGISTRY: ghcr.io
jobs:
build:
runs-on: ubuntu-latest
permissions:
packages: write
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/checkout@v3
- name: Login to GHCR
uses: docker/login-action@v2.0.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Get npm cache directory
id: npm-cache-dir
run: |
echo "::set-output name=dir::$(npm config get cache)"
- name: Configure npm cache
uses: actions/cache@v3
id: npm-cache
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Checkout modified web interface
uses: actions/checkout@v3
with:
repository: ConfusedPolarBear/jellyfin-web
ref: intros
path: web
- name: Store commit of web interface
id: web-commit
run: |
cd web
echo "::set-output name=commit::$(git log -1 --format='%H' | cut -c -10)"
- name: Build and copy web interface
run: |
cd web
npm install
cp -r dist ../docker/
tar czf dist.tar.gz dist
- name: Upload web interface
uses: actions/upload-artifact@v3.1.0
with:
name: jellyfin-web-10.8.0+${{ steps.web-commit.outputs.commit }}.tar.gz
path: web/dist.tar.gz
if-no-files-found: error
- name: Publish container
uses: docker/build-push-action@v3.1.1
with:
file: docker/Dockerfile
context: docker/
push: true
tags: ${{ env.REGISTRY}}/confusedpolarbear/jellyfin-intro-skipper:${{ steps.web-commit.outputs.commit }}