Skip to content

Commit 5f39a54

Browse files
authored
Merge pull request #10 from nullable-eth/fix-workflow
fix: consolidate release and Docker publishing workflows
2 parents 0b7f64e + b940a52 commit 5f39a54

File tree

3 files changed

+60
-116
lines changed

3 files changed

+60
-116
lines changed

.github/workflows/docker-publish.yml

Lines changed: 0 additions & 113 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,4 +177,58 @@ jobs:
177177
body_path: changelog.md
178178
draft: false
179179
prerelease: false
180-
generate_release_notes: true
180+
generate_release_notes: true
181+
182+
publish-docker:
183+
needs: [check-changes, create-release]
184+
if: needs.check-changes.outputs.should_release == 'true' || github.event_name == 'workflow_dispatch'
185+
runs-on: ubuntu-latest
186+
permissions:
187+
contents: read
188+
packages: write
189+
190+
steps:
191+
- name: Checkout repository
192+
uses: actions/checkout@v4
193+
194+
- name: Set up Docker Buildx
195+
uses: docker/setup-buildx-action@v3
196+
197+
- name: Log in to Container Registry
198+
uses: docker/login-action@v3
199+
with:
200+
registry: ghcr.io
201+
username: ${{ github.actor }}
202+
password: ${{ secrets.GITHUB_TOKEN }}
203+
204+
- name: Build and push Docker image
205+
uses: docker/build-push-action@v5
206+
with:
207+
context: .
208+
file: ./Dockerfile
209+
platforms: linux/amd64,linux/arm64
210+
push: true
211+
tags: |
212+
ghcr.io/${{ github.repository }}:${{ needs.check-changes.outputs.version }}
213+
ghcr.io/${{ github.repository }}:latest
214+
cache-from: type=gha
215+
cache-to: type=gha,mode=max
216+
217+
- name: Generate Docker summary
218+
run: |
219+
echo "## 🐳 Docker Image Published" >> $GITHUB_STEP_SUMMARY
220+
echo "" >> $GITHUB_STEP_SUMMARY
221+
echo "**Version:** ${{ needs.check-changes.outputs.version }}" >> $GITHUB_STEP_SUMMARY
222+
echo "" >> $GITHUB_STEP_SUMMARY
223+
echo "**Registry:** ghcr.io" >> $GITHUB_STEP_SUMMARY
224+
echo "" >> $GITHUB_STEP_SUMMARY
225+
echo "**Tags:**" >> $GITHUB_STEP_SUMMARY
226+
echo '```' >> $GITHUB_STEP_SUMMARY
227+
echo "ghcr.io/${{ github.repository }}:${{ needs.check-changes.outputs.version }}" >> $GITHUB_STEP_SUMMARY
228+
echo "ghcr.io/${{ github.repository }}:latest" >> $GITHUB_STEP_SUMMARY
229+
echo '```' >> $GITHUB_STEP_SUMMARY
230+
echo "" >> $GITHUB_STEP_SUMMARY
231+
echo "**Pull command:**" >> $GITHUB_STEP_SUMMARY
232+
echo '```bash' >> $GITHUB_STEP_SUMMARY
233+
echo "docker pull ghcr.io/${{ github.repository }}:${{ needs.check-changes.outputs.version }}" >> $GITHUB_STEP_SUMMARY
234+
echo '```' >> $GITHUB_STEP_SUMMARY

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
**Automatically sync TMDb keywords as Plex labels or genres for movies and TV shows**
99
Lightweight Docker container that bridges Plex with The Movie Database, adding searchable keywords to your media.
1010

11-
> **🔀 Fork Notice**: This is an enhanced fork of the original [Labelarr](https://github.com/Buttercup2k/Labelarr) project with new features including Radarr/Sonarr integration, persistent storage, verbose logging, and intelligent keyword normalization.
12-
1311
## 🚀 Quick Start
1412

1513
### Docker Compose (Recommended)
@@ -563,6 +561,7 @@ environment:
563561
```
564562
565563
This is especially useful for:
564+
566565
- Troubleshooting why certain items aren't being matched
567566
- Understanding which data source provided the TMDb ID
568567
- Debugging Radarr/Sonarr integration issues
@@ -586,11 +585,13 @@ Labelarr automatically normalizes keywords from TMDb using intelligent pattern r
586585
### Examples
587586
588587
**Before normalization:**
588+
589589
```
590590
sci-fi, action, fbi, based on novel, time travel, woman in peril
591591
```
592592

593593
**After normalization:**
594+
594595
```
595596
Sci-Fi, Action, FBI, Based on Novel, Time Travel, Woman in Peril
596597
```
@@ -617,6 +618,7 @@ Labelarr automatically cleans up duplicate keywords when applying normalization:
617618
### Verbose Logging
618619

619620
With `VERBOSE_LOGGING=true`, you'll see normalization and cleaning in action:
621+
620622
```
621623
📝 Normalized: "sci-fi" → "Sci-Fi"
622624
📝 Normalized: "fbi" → "FBI"
@@ -648,6 +650,7 @@ environment:
648650
### What it does
649651
650652
When `FORCE_UPDATE=true`:
653+
651654
- ✅ Processes all items regardless of previous processing status
652655
- ✅ Reapplies keywords even if they already exist
653656
- ✅ Updates storage with latest processing information

0 commit comments

Comments
 (0)