Skip to content

Commit

Permalink
Feature/173197 persons api client nuget package (#572)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
FrostyApeOne and Farshad DASHTI authored Aug 14, 2024
1 parent 407dd9c commit c8d8dc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile.PersonsApi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c8d8dc5

Please sign in to comment.