File tree 10 files changed +140
-49
lines changed
10 files changed +140
-49
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - master
7
+
8
+ jobs :
9
+ build :
10
+
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - uses : actions/checkout@v1
15
+ - name : Setup .NET Core
16
+ uses : actions/setup-dotnet@v1
17
+ with :
18
+ dotnet-version : 3.1.301
19
+ - name : Build
20
+ run : dotnet build -c Release
21
+ - name : Test
22
+ run : dotnet test -c Release --no-build
Original file line number Diff line number Diff line change
1
+ name : Publish
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' v*'
7
+ jobs :
8
+ build :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v1
12
+ - name : Setup .NET Core
13
+ uses : actions/setup-dotnet@v1
14
+ with :
15
+ dotnet-version : 3.1.301
16
+ - name : Install SignClient tool
17
+ run : dotnet tool install --tool-path . SignClient
18
+ - name : Install NBGV tool
19
+ run : dotnet tool install --tool-path . nbgv
20
+ - name : Set Version
21
+ run : ./nbgv cloud
22
+ - name : Create Packages
23
+ run : dotnet pack -c Release -o packages
24
+ - name : Sign Packages
25
+ run : |
26
+ echo $DNF_CODESIGN_CONFIG > ./packages/sign.json
27
+ ./SignClient sign --config "./packages/sign.json" --input "./packages/**/*.nupkg" --name "Docker.DotNet" --user "$DNF_CODESIGN_USER" --secret "$DNF_CODESIGN_SECRET" --Description "Docker.Net" --descriptionUrl "https://github.com/dotnet/Docker.DotNet"
28
+ rm packages/sign.json
29
+ env :
30
+ DNF_CODESIGN_CONFIG : ${{secrets.DNF_CODESIGN_CONFIG}}
31
+ DNF_CODESIGN_USER : ${{secrets.DNF_CODESIGN_USER}}
32
+ DNF_CODESIGN_SECRET : ${{secrets.DNF_CODESIGN_SECRET}}
33
+ - name : Push packages to NuGet.org
34
+ run : |
35
+ dotnet nuget push ./packages/Docker.DotNet.*.nupkg -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json
36
+ - name : Create Release
37
+ uses : actions/create-release@master
38
+ env :
39
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40
+ with :
41
+ tag_name : ${{ github.ref }}
42
+ release_name : Release ${{ github.ref }}
43
+ draft : true
44
+ prerelease : false
Original file line number Diff line number Diff line change @@ -181,4 +181,9 @@ UpgradeLog*.htm
181
181
FakesAssemblies /
182
182
183
183
# NuGet Packages Folder
184
- packages /
184
+ packages /
185
+
186
+ # dotnet tools
187
+ .store
188
+ SignClient
189
+ nbgv
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ <Project >
2
+ <PropertyGroup >
3
+ <IsPackable >true</IsPackable >
4
+ <TargetFrameworks >netstandard2.0</TargetFrameworks >
5
+ <PackageIconUrl >https://camo.githubusercontent.com/fa6d5c12609ed8a3ba1163b96f9e9979b8f59b0d/687474703a2f2f7765732e696f2f566663732f636f6e74656e74</PackageIconUrl >
6
+ <Copyright >Copyright (c) .NET Foundation and Contributors</Copyright >
7
+ <PackageTags >Docker Container C# .NET</PackageTags >
8
+ <RepositoryType >git</RepositoryType >
9
+ <RepositoryUrl >https://github.com/Microsoft/Docker.DotNet/tree/master/Docker.DotNet</RepositoryUrl >
10
+ <PublishRepositoryUrl >true</PublishRepositoryUrl >
11
+ <IncludeSymbols >true</IncludeSymbols >
12
+ <EmbedUntrackedSources >true</EmbedUntrackedSources >
13
+ <AllowedOutputExtensionsInPackageBuildOutputFolder >$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder >
14
+ <PackageLicenseFile >LICENSE</PackageLicenseFile >
15
+ <PackageIcon >icon.png</PackageIcon >
16
+ </PropertyGroup >
17
+
18
+ <PropertyGroup Condition =" '$(GITHUB_ACTIONS)' == 'true'" >
19
+ <ContinuousIntegrationBuild >true</ContinuousIntegrationBuild >
20
+ </PropertyGroup >
21
+
22
+ <PropertyGroup Condition =" '$(VersionSuffix)' != ''" >
23
+ <Version >$(VersionPrefix).$(VersionSuffix)</Version >
24
+ </PropertyGroup >
25
+
26
+ <ItemGroup >
27
+ <None Include =" ..\..\LICENSE" Pack =" true" PackagePath =" " />
28
+ <None Include =" ..\..\icon.png" Pack =" true" PackagePath =" \" />
29
+ </ItemGroup >
30
+
31
+ <ItemGroup >
32
+ <PackageReference Include =" Microsoft.SourceLink.GitHub" Version =" 1.0.0" PrivateAssets =" All" />
33
+ <PackageReference Include =" Nerdbank.GitVersioning" Version =" 3.1.91" >
34
+ <PrivateAssets >all</PrivateAssets >
35
+ <IncludeAssets >runtime; build; native; contentfiles; analyzers</IncludeAssets >
36
+ </PackageReference >
37
+ </ItemGroup >
38
+ </Project >
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
- <PropertyGroup >
3
- <IsPackable >true</IsPackable >
2
+ <PropertyGroup >
4
3
<PackageId >Docker.DotNet.BasicAuth</PackageId >
5
4
<Description >Docker.DotNet.BasicAuth is a library that allows you to use basic authentication with a remote Docker engine programmatically in your .NET applications.</Description >
6
- <TargetFrameworks >netstandard2.0</TargetFrameworks >
7
5
<AssemblyName >Docker.DotNet.BasicAuth</AssemblyName >
8
- <PackageIconUrl >https://camo.githubusercontent.com/fa6d5c12609ed8a3ba1163b96f9e9979b8f59b0d/687474703a2f2f7765732e696f2f566663732f636f6e74656e74</PackageIconUrl >
9
- <PackageLicenseUrl >https://github.com/dotnet/Docker.DotNet/blob/master/LICENSE</PackageLicenseUrl >
10
- <Copyright >Copyright (c) .NET Foundation and Contributors</Copyright >
11
- <PackageTags >Docker Container C# .NET</PackageTags >
12
- <RepositoryType >git</RepositoryType >
13
- <RepositoryUrl >https://github.com/Microsoft/Docker.DotNet/tree/master/Docker.DotNet.BasicAuth</RepositoryUrl >
14
- <VersionPrefix >3.125.4</VersionPrefix >
15
- </PropertyGroup >
16
- <PropertyGroup Condition =" '$(VersionSuffix)' != ''" >
17
- <Version >$(VersionPrefix).$(VersionSuffix)</Version >
18
6
</PropertyGroup >
19
7
<ItemGroup >
20
8
<ProjectReference Include =" ..\Docker.DotNet\Docker.DotNet.csproj" />
Original file line number Diff line number Diff line change 3
3
<IsPackable >true</IsPackable >
4
4
<PackageId >Docker.DotNet.X509</PackageId >
5
5
<Description >Docker.DotNet.X509 is a library that allows you to use certificate authentication with a remote Docker engine programmatically in your .NET applications.</Description >
6
- <TargetFrameworks >netstandard2.0</TargetFrameworks >
7
6
<AssemblyName >Docker.DotNet.X509</AssemblyName >
8
- <PackageIconUrl >https://camo.githubusercontent.com/fa6d5c12609ed8a3ba1163b96f9e9979b8f59b0d/687474703a2f2f7765732e696f2f566663732f636f6e74656e74</PackageIconUrl >
9
- <PackageLicenseUrl >https://github.com/dotnet/Docker.DotNet/blob/master/LICENSE</PackageLicenseUrl >
10
- <Copyright >Copyright (c) .NET Foundation and Contributors</Copyright >
11
- <PackageTags >Docker Container C# .NET</PackageTags >
12
- <RepositoryType >git</RepositoryType >
13
- <RepositoryUrl >https://github.com/Microsoft/Docker.DotNet/tree/master/Docker.DotNet</RepositoryUrl >
14
- <VersionPrefix >3.125.4</VersionPrefix >
15
- </PropertyGroup >
16
- <PropertyGroup Condition =" '$(VersionSuffix)' != ''" >
17
- <Version >$(VersionPrefix).$(VersionSuffix)</Version >
18
7
</PropertyGroup >
19
8
<ItemGroup >
20
9
<ProjectReference Include =" ..\Docker.DotNet\Docker.DotNet.csproj" />
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
- <IsPackable >true</IsPackable >
4
3
<PackageId >Docker.DotNet</PackageId >
5
4
<Description >Docker.DotNet is a library that allows you to interact with the Docker Remote API programmatically with fully asynchronous, non-blocking and object-oriented code in your .NET applications.</Description >
6
- <TargetFrameworks >netstandard2.0</TargetFrameworks >
7
5
<AssemblyName >Docker.DotNet</AssemblyName >
8
- <PackageIconUrl >https://camo.githubusercontent.com/fa6d5c12609ed8a3ba1163b96f9e9979b8f59b0d/687474703a2f2f7765732e696f2f566663732f636f6e74656e74</PackageIconUrl >
9
- <PackageLicenseUrl >https://github.com/dotnet/Docker.DotNet/blob/master/LICENSE</PackageLicenseUrl >
10
- <Copyright >Copyright (c) .NET Foundation and Contributors</Copyright >
11
- <PackageTags >Docker Container C# .NET</PackageTags >
12
- <RepositoryType >git</RepositoryType >
13
- <RepositoryUrl >https://github.com/Microsoft/Docker.DotNet</RepositoryUrl >
14
- <VersionPrefix >3.125.4</VersionPrefix >
15
- </PropertyGroup >
16
- <PropertyGroup Condition =" '$(VersionSuffix)' != ''" >
17
- <Version >$(VersionPrefix).$(VersionSuffix)</Version >
18
6
</PropertyGroup >
19
7
<ItemGroup >
20
8
<PackageReference Include =" Newtonsoft.Json" Version =" 12.0.3" />
Original file line number Diff line number Diff line change
1
+ {
2
+ "$schema" : " https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json" ,
3
+ "version" : " 3.125.4" ,
4
+ "nugetPackageVersion" : {
5
+ "semVer" : 2
6
+ },
7
+ "pathFilters" : [
8
+ // optional list of paths to consider when calculating version height.
9
+ ],
10
+ "publicReleaseRefSpec" : [
11
+ " ^refs/heads/master$" , // we release out of master
12
+ " ^refs/tags/v\\ d+\\ .\\ d+" // we also release tags starting with vN.N
13
+ ],
14
+ "cloudBuild" : {
15
+ "setVersionVariables" : true ,
16
+ "buildNumber" : {
17
+ "enabled" : false ,
18
+ "includeCommitId" : {
19
+ "when" : " nonPublicReleaseOnly" ,
20
+ "where" : " buildMetadata"
21
+ }
22
+ }
23
+ },
24
+ "release" : {
25
+ "branchName" : " v{version}" ,
26
+ "versionIncrement" : " minor" ,
27
+ "firstUnstableTag" : " alpha"
28
+ }
29
+ }
You can’t perform that action at this time.
0 commit comments