build(ci): add NuGet config for private package feed
Add nuget.config with Gitea package source for MarketAlly.* packages and credential configuration using environment variables. Remove nuget.config from .gitignore to track package source configuration while keeping credentials secure through environment variable substitution.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -54,7 +54,6 @@ coverage/
|
||||
# NuGet
|
||||
packages/
|
||||
*.nupkg
|
||||
nuget.config
|
||||
|
||||
# Generated proto files
|
||||
**/Proto/
|
||||
|
||||
22
nuget.config
Normal file
22
nuget.config
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<packageSources>
|
||||
<clear />
|
||||
<add key="gitea" value="https://git.marketally.com/api/packages/marketally/nuget/index.json" />
|
||||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
|
||||
</packageSources>
|
||||
<packageSourceMapping>
|
||||
<packageSource key="gitea">
|
||||
<package pattern="MarketAlly.*" />
|
||||
</packageSource>
|
||||
<packageSource key="nuget.org">
|
||||
<package pattern="*" />
|
||||
</packageSource>
|
||||
</packageSourceMapping>
|
||||
<packageSourceCredentials>
|
||||
<gitea>
|
||||
<add key="Username" value="%NUGET_USER%" />
|
||||
<add key="ClearTextPassword" value="%NUGET_TOKEN%" />
|
||||
</gitea>
|
||||
</packageSourceCredentials>
|
||||
</configuration>
|
||||
Reference in New Issue
Block a user