Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit ee9ad73

Browse files
authored
Fix Docker file build (#90)
* Fix Docker file build
1 parent f2bc032 commit ee9ad73

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/build-cli.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ on:
33
push:
44
paths:
55
- 'src/**'
6-
- 'msgraph-cli-core'
76
jobs:
87
build:
98
runs-on: ubuntu-latest

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ ARG MSGRAPH_NUGET_URL=https://nuget.pkg.github.com/microsoftgraph/index.json
1111
WORKDIR /app
1212

1313
COPY ./src ./msgraph-cli/src
14-
COPY ./msgraph-cli-core ./msgraph-cli/msgraph-cli-core
1514
WORKDIR /app/msgraph-cli
1615

1716
RUN --mount=type=secret,id=user,required=true --mount=type=secret,id=token,required=true \
18-
dotnet nuget add source ${MS_NUGET_URL} -n ms-gh -u $(cat /run/secrets/user) -p $(cat /run/secrets/token) --store-password-in-clear-text
17+
dotnet nuget add source ${MS_NUGET_URL} -n ms-gh -u $(cat /run/secrets/user) -p $(cat /run/secrets/token) --store-password-in-clear-text &&\
18+
dotnet nuget add source ${MSGRAPH_NUGET_URL} -n msgraph-gh -u $(cat /run/secrets/user) -p $(cat /run/secrets/token) --store-password-in-clear-text
1919

2020
RUN dotnet publish -p:PublishSingleFile=false -p:PublishReadyToRun=true -p:PublishReadyToRunShowWarnings=true ./src/msgraph-cli.csproj --configuration Release --no-self-contained --runtime linux-musl-x64 --output /app/output
2121

0 commit comments

Comments
 (0)