3219d07dea
Build and Deploy / build (push) Failing after 5s
- Dockerfile: استفاده از Nexus Docker (194.5.195.53:32082) - NuGet.config: استفاده از Nexus NuGet با HTTP و allowInsecureConnections - workflow: حذف kubectl dependency، اضافه کردن 32082 به insecure-registries - csproj: تغییر push آدرس به Nexus foursat-nuget-hosted
43 lines
1.7 KiB
XML
43 lines
1.7 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net9.0</TargetFramework>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<Nullable>enable</Nullable>
|
|
<Version>0.0.4</Version>
|
|
<DebugType>None</DebugType>
|
|
<DebugSymbols>False</DebugSymbols>
|
|
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
|
|
<PackageId>Foursat.BackOffice.BFF.DiscountShoppingCart.Protobuf</PackageId>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Google.Protobuf" Version="3.23.3" />
|
|
<PackageReference Include="Grpc.Core.Api" Version="2.54.0" />
|
|
<PackageReference Include="Grpc.Tools" Version="2.72.0">
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
<PrivateAssets>all</PrivateAssets>
|
|
</PackageReference>
|
|
<PackageReference Include="FluentValidation.DependencyInjectionExtensions" Version="11.2.2" />
|
|
<PackageReference Include="Google.Api.CommonProtos" Version="2.10.0" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Protobuf Include="Protos\discountshoppingcart.proto" ProtoRoot="Protos\" GrpcServices="Both" AdditionalImportDirs="..\BackOffice.BFF.Common.Protobuf\Protos"/>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\BackOffice.BFF.Common.Protobuf\BackOffice.BFF.Common.Protobuf.csproj" />
|
|
</ItemGroup>
|
|
<Target Name="PushToFourSat" AfterTargets="Pack">
|
|
<PropertyGroup>
|
|
<NugetPackagePath>$(PackageOutputPath)$(PackageId).$(Version).nupkg</NugetPackagePath>
|
|
<PushCommand>
|
|
dotnet nuget push **/*.nupkg --source http://194.5.195.53:32081/repository/foursat-nuget-hosted/index.json --api-key admin:87zH26nbqT --skip-duplicate
|
|
</PushCommand>
|
|
</PropertyGroup>
|
|
|
|
<Exec Command="$(PushCommand)" />
|
|
</Target>
|
|
</Project>
|