Skip to content

Commit

Permalink
ci: start using semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
gloaysa committed Mar 16, 2024
1 parent dc7d032 commit f717e26
Show file tree
Hide file tree
Showing 6 changed files with 12,182 additions and 6,752 deletions.
31 changes: 6 additions & 25 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,13 @@ env:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: 20

Expand All @@ -31,23 +28,7 @@ jobs:
- name: Build application
run: npm run build

- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GHCR_PAT }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ghcr.io/gloaysa/whatsplaying

- name: Build and push Docker image
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GHCR_PAT }}
API_TOKEN: ${{ secrets.GHCR_PAT }}
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
19 changes: 19 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"branches": ["main"],
plugins: [
['@codedependant/semantic-release-docker', {
dockerTags: ['latest', '{{version}}', '{{major}}-latest', '{{major}}.{{minor}}'],
dockerImage: 'whatsplaying',
dockerFile: 'Dockerfile',
dockerRegistry: 'ghcr.io',
dockerBuildFlags: {
pull: null,
target: 'release'
},
dockerArgs: {
RELEASE_DATE: new Date().toISOString(),
RELEASE_VERSION: '{{next.version}}',
}
}]
]
}
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
<img align="right" width="33%" src="./logo.png">
<h1>What's Playing</h1>




Welcome to **What's Playing**, a web application that brings your music cover art from Plex to live. This project is all about showcasing your currently playing album art in a visually appealing way, turning your browser into a vibrant music hub.

If your personal music collection don't have really good cover art, I created a [python script that will download them for you](https://github.com/gloaysa/whatsplaying/wiki/How-to-get-high-quality-covers-for-all-your-music). Please, read the instructions provided before using!

**What's Playing** is more than just a pretty face. It offers basic music controls like play, pause, volume adjustment, and track navigation. But these controls are designed to be unobtrusive, appearing only when you need them, so the album art always takes center stage.

One of the key features of **What's Playing** is the ability to browse through your Plex devices. Imagine a slide show where each slide is a different device, and you can flip through them with a simple swipe.
Expand Down
Loading

0 comments on commit f717e26

Please sign in to comment.