Skip to content

Commit fc2611e

Browse files
Testing another syntax while Docker downloads
1 parent c9b8093 commit fc2611e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

EssentialCSharp.Web/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ ENV ACCESS_TO_NUGET_FEED=$ACCESS_TO_NUGET_FEED
1111
RUN sh -c "$(curl -fsSL https://aka.ms/install-artifacts-credprovider.sh)"
1212
WORKDIR /src
1313
COPY . .
14-
RUN if [ "$ACCESS_TO_NUGET_FEED" = "true" ]; then \
15-
--mount=type=secret,id=nuget_auth_token \
16-
auth_token=$(cat /run/secrets/nuget_auth_token) && \
17-
export VSS_NUGET_EXTERNAL_FEED_ENDPOINTS="{\"endpointCredentials\": [{\"endpoint\":\"https://pkgs.dev.azure.com/intelliTect/_packaging/EssentialCSharp/nuget/v3/index.json\", \"password\":\"$auth_token\"}]}"; \
14+
RUN --mount=type=secret,id=nuget_auth_token \
15+
if [ "$ACCESS_TO_NUGET_FEED" = "true" ]; then \
16+
auth_token=$(cat /run/secrets/nuget_auth_token) && \
17+
export VSS_NUGET_EXTERNAL_FEED_ENDPOINTS="{\"endpointCredentials\": [{\"endpoint\":\"https://pkgs.dev.azure.com/intelliTect/_packaging/EssentialCSharp/nuget/v3/index.json\", \"password\":\"$auth_token\"}]}"; \
1818
fi && \
1919
dotnet restore "EssentialCSharp.Web.sln" -p:AccessToNugetFeed=$ACCESS_TO_NUGET_FEED && \
2020
dotnet build "EssentialCSharp.Web.sln" -c Release --no-restore -p:AccessToNugetFeed=$ACCESS_TO_NUGET_FEED && \

0 commit comments

Comments
 (0)