Skip to content

Commit

Permalink
Feature/173197 persons api client nuget package (#571)
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

---------

Co-authored-by: Farshad DASHTI <[email protected]>
  • Loading branch information
FrostyApeOne and Farshad DASHTI authored Aug 14, 2024
1 parent eb2aeaa commit 407dd9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
uses: docker/build-push-action@v6
with:
build-args: |
CI="true"
CI=true
file: './${{ matrix.image }}'
secrets: github_token=${{ secrets.GITHUB_TOKEN }}
push: false
3 changes: 3 additions & 0 deletions Dockerfile.PersonsApi
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ WORKDIR /build

ENV DEBIAN_FRONTEND=noninteractive

ARG CI
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"
Expand Down

0 comments on commit 407dd9c

Please sign in to comment.