mirror of
https://github.com/Lidarr/Lidarr
synced 2026-05-08 12:33:04 +02:00
Delete .github/workflows/docker-build.yml
This commit is contained in:
parent
d70919fef2
commit
470eb231b1
1 changed files with 0 additions and 65 deletions
65
.github/workflows/docker-build.yml
vendored
65
.github/workflows/docker-build.yml
vendored
|
|
@ -1,65 +0,0 @@
|
|||
name: Build and Push Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ develop ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Save Dockerfile
|
||||
run: cp Dockerfile /tmp/Dockerfile
|
||||
|
||||
- name: Fetch upstream tag
|
||||
run: |
|
||||
git remote add upstream https://github.com/Lidarr/Lidarr.git
|
||||
git fetch upstream refs/tags/v3.1.0.4875:refs/tags/v3.1.0.4875
|
||||
git checkout v3.1.0.4875
|
||||
git submodule update --init --recursive
|
||||
|
||||
- name: Restore Dockerfile
|
||||
run: cp /tmp/Dockerfile ./Dockerfile
|
||||
|
||||
- name: Apply fix
|
||||
run: |
|
||||
sed -i 's/_rootFolderService.All().Select(x => x.Path).ToList();/artists.Select(x => x.Path).ToList();/' src/NzbDrone.Core/Music/Services/RefreshArtistService.cs
|
||||
|
||||
- name: Verify fix applied
|
||||
run: grep -n "artists.Select(x => x.Path).ToList()" src/NzbDrone.Core/Music/Services/RefreshArtistService.cs
|
||||
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@v4
|
||||
with:
|
||||
dotnet-version: '8.0.x'
|
||||
|
||||
- name: Restore dependencies
|
||||
run: |
|
||||
dotnet restore src/NzbDrone.Core/Lidarr.Core.csproj
|
||||
dotnet restore src/NzbDrone.Host/Lidarr.Host.csproj
|
||||
|
||||
- name: Build
|
||||
run: dotnet build src/NzbDrone.Host/Lidarr.Host.csproj --configuration Release --no-restore -p:RunAnalyzers=false
|
||||
|
||||
- name: Copy output to root
|
||||
run: cp -r _output/net8.0 ./output
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Build and Push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
tags: |
|
||||
mcphelps/lidarr-fix:latest
|
||||
Loading…
Reference in a new issue