File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,11 @@ ENV ACCESS_TO_NUGET_FEED=$ACCESS_TO_NUGET_FEED
1111RUN sh -c "$(curl -fsSL https://aka.ms/install-artifacts-credprovider.sh)"
1212WORKDIR /src
1313COPY . .
14- RUN --mount=type=secret,id=nuget_auth_token \
14+ RUN if [ "$ACCESS_TO_NUGET_FEED" = "true" ]; then \
15+ --mount=type=secret,id=nuget_auth_token \
1516 auth_token=$(cat /run/secrets/nuget_auth_token) && \
1617 export VSS_NUGET_EXTERNAL_FEED_ENDPOINTS="{\" endpointCredentials\" : [{\" endpoint\" :\" https://pkgs.dev.azure.com/intelliTect/_packaging/EssentialCSharp/nuget/v3/index.json\" , \" password\" :\" $auth_token\" }]}" && \
18+ fi; \
1719 dotnet restore "EssentialCSharp.Web.sln" -p:AccessToNugetFeed=$ACCESS_TO_NUGET_FEED && \
1820 dotnet build "EssentialCSharp.Web.sln" -c Release --no-restore -p:AccessToNugetFeed=$ACCESS_TO_NUGET_FEED && \
1921 dotnet publish "EssentialCSharp.Web.sln" -c Release -p:PublishDir=/app/publish -p:UseAppHost=false --no-build
You can’t perform that action at this time.
0 commit comments