Commit f598d60
committed
fix: use dotnet nuget update source for Docker NuGet auth
The previous approach copied credentials to ~/.nuget/config/credentials.config,
which is NOT a path the .NET SDK reads on Linux. The NuGet client only reads
user-level config from ~/.nuget/NuGet/NuGet.Config.
Replace the broken config-layering approach with 'dotnet nuget update source',
which injects credentials into the repo's nuget.config in the build stage.
This preserves packageSourceMapping and uses no external tooling.
Also fixes:
- Semicolon (;) after dotnet restore replaced with && to fail fast
- CI now passes raw PAT as BuildKit secret instead of generating XML
- Uses runner.temp instead of /tmp for the PAT file1 parent 1f6c3e0 commit f598d60
2 files changed
Lines changed: 12 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 68 | + | |
85 | 69 | | |
86 | 70 | | |
87 | 71 | | |
| |||
102 | 86 | | |
103 | 87 | | |
104 | 88 | | |
105 | | - | |
| 89 | + | |
106 | 90 | | |
107 | 91 | | |
108 | 92 | | |
| |||
112 | 96 | | |
113 | 97 | | |
114 | 98 | | |
115 | | - | |
| 99 | + | |
116 | 100 | | |
117 | | - | |
| 101 | + | |
118 | 102 | | |
119 | 103 | | |
120 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
25 | | - | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| |||
0 commit comments