From c8d8dc52e4eb97a7c12a98c1c96d83008d96bab4 Mon Sep 17 00:00:00 2001 From: FrostyApeOne <78855469+FrostyApeOne@users.noreply.github.com> Date: Wed, 14 Aug 2024 14:21:11 +0100 Subject: [PATCH] Feature/173197 persons api client nuget package (#572) * Added a new step to the build workfow to build and publish a nuget package * Changed the target condition so it wont run in CI * Added a change for testing the new workflow * Added environment varibale CI to the CI yaml file * Added build-args in the docker-build * Fixed the casing in teh target condition * Modified target condition * Modified target condition * Added CI argument to the docker file, passed in from the docker build * Passed in CI argument to the project build process --------- Co-authored-by: Farshad DASHTI --- Dockerfile.PersonsApi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile.PersonsApi b/Dockerfile.PersonsApi index 62beebb31..d525feb7d 100644 --- a/Dockerfile.PersonsApi +++ b/Dockerfile.PersonsApi @@ -9,7 +9,7 @@ ENV CI=${CI} COPY . . RUN --mount=type=secret,id=github_token dotnet nuget add source --username USERNAME --password $(cat /run/secrets/github_token) --store-password-in-clear-text --name github "https://nuget.pkg.github.com/DFE-Digital/index.json" -RUN dotnet build -c Release PersonsApi +RUN dotnet build -c Release PersonsApi -p:CI=${CI} RUN dotnet publish PersonsApi -c Release -o /app --no-restore RUN dotnet new tool-manifest