FROM mcr.microsoft.com/dotnet/sdk:6.0 ARG NUGET_URL ARG NUGET_USER ARG NUGET_PASS COPY . . RUN dotnet nuget add source --name Gitea --username $NUGET_USER --password $NUGET_PASS $NUGET_URL --store-password-in-clear-text RUN dotnet restore RUN dotnet test RUN dotnet pack -o ./output RUN dotnet nuget push --skip-duplicate --source Gitea ./output/*