From 8412cc13df7d06d3f692be5197722e28e5f20b47 Mon Sep 17 00:00:00 2001
From: Simon Diesenreiter <simon.diesenreiter@dynatrace.com>
Date: Tue, 15 Apr 2025 15:24:47 +0200
Subject: [PATCH] fix: remove unnecessary dotnet runtime download in CI job
 refs NOISSUE

---
 .gitea/workflows/release.yml | 4 ----
 Dockerfile                   | 4 ++--
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml
index 5869fcc..a972b69 100644
--- a/.gitea/workflows/release.yml
+++ b/.gitea/workflows/release.yml
@@ -38,10 +38,6 @@ jobs:
     runs-on: ubuntu-latest
     steps:
     - uses: actions/checkout@v3
-    - name: Set up dotnet
-      uses: actions/setup-dotnet@v4
-      with:
-        dotnet-version: '9.0.X'
     - name: Check version match
       run: |
         REPOSITORY_NAME=$(echo "$GITHUB_REPOSITORY" | awk -F '/' '{print $2}' | tr '-' '_')
diff --git a/Dockerfile b/Dockerfile
index 1924842..47a4346 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,9 +4,9 @@ WORKDIR /App
 # Copy everything
 COPY . ./
 # Restore as distinct layers
-RUN dotnet restore --project ./song_of_the_day/song_of_the_day.csproj
+RUN dotnet restore ./song_of_the_day/song_of_the_day.csproj
 # Build and publish a release
-RUN dotnet publish --project ./song_of_the_day/song_of_the_day.csproj -o out
+RUN dotnet publish ./song_of_the_day/song_of_the_day.csproj -o out
 
 # Build runtime image
 FROM mcr.microsoft.com/dotnet/aspnet:9.0