File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 3535 run : dotnet build --configuration Release --no-restore /p:AccessToNugetFeed=false
3636
3737 - name : Run .NET Tests
38- run : dotnet test --no-build --configuration Release /p:AccessToNugetFeed=false
38+ run : dotnet test --no-build --configuration Release
3939
4040 - name : Set up Docker Buildx
4141 uses : docker/setup-buildx-action@v3
4848 outputs : type=docker,dest=${{ github.workspace }}/essentialcsharpwebimage.tar
4949 cache-from : type=gha
5050 cache-to : type=gha,mode=max
51+ build-args : ACCESS_TO_NUGET_FEED=false
Original file line number Diff line number Diff line change 11# syntax=docker/dockerfile:1.2
2+ ARG ACCESS_TO_NUGET_FEED=true
23
34FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
45WORKDIR /app
@@ -12,8 +13,8 @@ COPY . .
1213RUN --mount=type=secret,id=nuget_auth_token \
1314 auth_token=$(cat /run/secrets/nuget_auth_token) && \
1415 export VSS_NUGET_EXTERNAL_FEED_ENDPOINTS="{\" endpointCredentials\" : [{\" endpoint\" :\" https://pkgs.dev.azure.com/intelliTect/_packaging/EssentialCSharp/nuget/v3/index.json\" , \" password\" :\" $auth_token\" }]}" && \
15- dotnet restore "EssentialCSharp.Web.sln" && \
16- dotnet build "EssentialCSharp.Web.sln" -c Release --no-restore && \
16+ dotnet restore "EssentialCSharp.Web.sln" -p:AccessToNugetFeed=$ACCESS_TO_NUGET_FEED && \
17+ dotnet build "EssentialCSharp.Web.sln" -c Release --no-restore -p:AccessToNugetFeed=$ACCESS_TO_NUGET_FEED && \
1718 dotnet publish "EssentialCSharp.Web.sln" -c Release -p:PublishDir=/app/publish -p:UseAppHost=false --no-build
1819
1920FROM base AS final
You can’t perform that action at this time.
0 commit comments