diff --git a/Hackney.Shared.CautionaryAlerts.Tests/Dockerfile b/Hackney.Shared.CautionaryAlerts.Tests/Dockerfile index 3c4ea24..a5fbd77 100644 --- a/Hackney.Shared.CautionaryAlerts.Tests/Dockerfile +++ b/Hackney.Shared.CautionaryAlerts.Tests/Dockerfile @@ -26,6 +26,8 @@ RUN --mount=type=secret,id=LBHPACKAGESTOKEN \ # Copy everything else and build COPY . . -RUN dotnet build -c debug -o out Hackney.Shared.CautionaryAlerts.Tests/Hackney.Shared.CautionaryAlerts.Tests.csproj +RUN --mount=type=secret,id=LBHPACKAGESTOKEN \ + export LBHPACKAGESTOKEN=$(cat /run/secrets/LBHPACKAGESTOKEN) && \ + dotnet build -c debug -o out Hackney.Shared.CautionaryAlerts.Tests/Hackney.Shared.CautionaryAlerts.Tests.csproj CMD dotnet test