diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 364df5a..5064d2a 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -20,11 +20,14 @@ jobs:
- name: Test Samples
run: dotnet test --no-restore --verbosity normal ./samples/MyCRM.Lodgement.Sample.Tests/MyCRM.Lodgement.Sample.Tests.csproj
- name: Build Docker image
- run: docker build . -f ./samples/MyCRM.Lodgement.Sample/Dockerfile -t lodgementsample:latest
+ run: |
+ echo ${{secrets.LOAN_MARKET_TOKEN_READ_ONLY }}> ./nugetLoginToken.secret
+ docker build . -f ./samples/MyCRM.Lodgement.Sample/Dockerfile -t lodgementsample:latest --secret id=NUGET_LOGIN_TOKEN,src=./nugetLoginToken.secret
- name: Save Docker image to file
run: docker save lodgementsample:latest -o lodgementsample-docker-image.tar
- name: Save Docker image as an artifact
uses: actions/upload-artifact@v3
with:
name: lodgementsample-docker-image
- path: lodgementsample-docker-image.tar
\ No newline at end of file
+ path: lodgementsample-docker-image.tar
+
\ No newline at end of file
diff --git a/samples/MyCRM.Lodgement.Sample/Dockerfile b/samples/MyCRM.Lodgement.Sample/Dockerfile
index 04ee54b..0fb84f2 100644
--- a/samples/MyCRM.Lodgement.Sample/Dockerfile
+++ b/samples/MyCRM.Lodgement.Sample/Dockerfile
@@ -20,6 +20,8 @@ RUN dotnet publish \
--configuration Release \
--output "/app/publish"
+
+
FROM mcr.microsoft.com/dotnet/aspnet:8.0-bookworm-slim AS final
WORKDIR /app
COPY --from=build /app/publish .
diff --git a/samples/NuGet.Config b/samples/NuGet.Config
index 51a6dea..8516905 100644
--- a/samples/NuGet.Config
+++ b/samples/NuGet.Config
@@ -5,12 +5,7 @@
-
-
-
-
-
-
+