File tree Expand file tree Collapse file tree 10 files changed +62
-62
lines changed Expand file tree Collapse file tree 10 files changed +62
-62
lines changed Original file line number Diff line number Diff line change 1
1
name : ' Docker Manifests'
2
2
description : ' Docker Publish Manifests'
3
3
inputs :
4
- dockerDistro :
4
+ docker_distro :
5
5
description : ' Linux Distro'
6
6
required : true
7
- dotnetVersion :
7
+ dotnet_version :
8
8
description : ' .net version'
9
9
required : true
10
10
docker_registry_username :
34
34
shell : pwsh
35
35
run : |
36
36
dotnet run/docker.dll `
37
- --target=DockerManifest --arch=amd64 --arch=arm64 --dotnet_version=${{ inputs.dotnetVersion }} `
38
- --docker_distro=${{ inputs.dockerDistro }} --docker_registry dockerhub
37
+ --target=DockerManifest --arch=amd64 --arch=arm64 --dotnet_version=${{ inputs.dotnet_version }} `
38
+ --docker_distro=${{ inputs.docker_distro }} --docker_registry dockerhub
39
39
-
40
40
name : Login to GitHub
41
41
uses : docker/login-action@v3
48
48
shell : pwsh
49
49
run : |
50
50
dotnet run/docker.dll `
51
- --target=DockerManifest --arch=amd64 --arch=arm64 --dotnet_version=${{ inputs.dotnetVersion }} `
52
- --docker_distro=${{ inputs.dockerDistro }} --docker_registry github
51
+ --target=DockerManifest --arch=amd64 --arch=arm64 --dotnet_version=${{ inputs.dotnet_version }} `
52
+ --docker_distro=${{ inputs.docker_distro }} --docker_registry github
Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ inputs:
4
4
arch :
5
5
description : ' Docker architecture'
6
6
required : true
7
- dockerDistro :
7
+ docker_distro :
8
8
description : ' Linux Distro'
9
9
required : true
10
- dotnetVersion :
10
+ dotnet_version :
11
11
description : ' .net version'
12
12
required : true
13
13
docker_registry_username :
37
37
shell : pwsh
38
38
run : |
39
39
dotnet run/docker.dll `
40
- --target=DockerPublish --arch=${{ inputs.arch }} --dotnet_version=${{ inputs.dotnetVersion }} `
41
- --docker_distro=${{ inputs.dockerDistro }} --docker_registry dockerhub --verbosity=diagnostic
40
+ --target=DockerPublish --arch=${{ inputs.arch }} --dotnet_version=${{ inputs.dotnet_version }} `
41
+ --docker_distro=${{ inputs.docker_distro }} --docker_registry dockerhub --verbosity=diagnostic
42
42
-
43
43
name : Login to GitHub
44
44
uses : docker/login-action@v3
51
51
shell : pwsh
52
52
run : |
53
53
dotnet run/docker.dll `
54
- --target=DockerPublish --arch=${{ inputs.arch }} --dotnet_version=${{ inputs.dotnetVersion }} `
55
- --docker_distro=${{ inputs.dockerDistro }} --docker_registry github --verbosity=diagnostic
54
+ --target=DockerPublish --arch=${{ inputs.arch }} --dotnet_version=${{ inputs.dotnet_version }} `
55
+ --docker_distro=${{ inputs.docker_distro }} --docker_registry github --verbosity=diagnostic
Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ inputs:
4
4
arch :
5
5
description : ' Docker architecture'
6
6
default : ' amd64'
7
- dockerDistro :
7
+ docker_distro :
8
8
description : ' Linux Distro'
9
9
default : ' debian.12'
10
- dotnetVersion :
10
+ dotnet_version :
11
11
description : ' .net version'
12
12
default : ' 8.0'
13
13
@@ -19,12 +19,12 @@ runs:
19
19
shell : pwsh
20
20
run : |
21
21
dotnet run/docker.dll --target=DockerTest `
22
- --arch=${{ inputs.arch }} --dotnet_version=${{ inputs.dotnetVersion }} `
23
- --docker_distro=${{ inputs.dockerDistro }} --docker_registry dockerhub --verbosity=diagnostic
22
+ --arch=${{ inputs.arch }} --dotnet_version=${{ inputs.dotnet_version }} `
23
+ --docker_distro=${{ inputs.docker_distro }} --docker_registry dockerhub --verbosity=diagnostic
24
24
-
25
25
name : ' [Docker Build & Test] GitHub'
26
26
shell : pwsh
27
27
run : |
28
28
dotnet run/docker.dll --target=DockerTest `
29
- --arch=${{ inputs.arch }} --dotnet_version=${{ inputs.dotnetVersion }} `
30
- --docker_distro=${{ inputs.dockerDistro }} --docker_registry github --verbosity=diagnostic
29
+ --arch=${{ inputs.arch }} --dotnet_version=${{ inputs.dotnet_version }} `
30
+ --docker_distro=${{ inputs.docker_distro }} --docker_registry github --verbosity=diagnostic
Original file line number Diff line number Diff line change 7
7
arch :
8
8
required : true
9
9
type : string
10
- dockerDistros :
10
+ docker_distros :
11
11
required : true
12
12
type : string
13
- dotnetVersions :
13
+ dotnet_versions :
14
14
required : true
15
15
type : string
16
16
env :
19
19
20
20
jobs :
21
21
artifacts :
22
- name : ${{ matrix.dockerDistro }} - net${{ matrix.dotnetVersion }}
22
+ name : ${{ matrix.docker_distro }} - net${{ matrix.dotnet_version }}
23
23
runs-on : ${{ inputs.runner }}
24
24
strategy :
25
25
fail-fast : false
26
- matrix :
27
- dockerDistro : ${{ fromJson(inputs.dockerDistros ) }}
28
- dotnetVersion : ${{ fromJson(inputs.dotnetVersions ) }}
26
+ matrix :
27
+ docker_distro : ${{ fromJson(inputs.docker_distros ) }}
28
+ dotnet_version : ${{ fromJson(inputs.dotnet_versions ) }}
29
29
steps :
30
30
-
31
31
name : Checkout
55
55
shell : pwsh
56
56
run : |
57
57
dotnet run/artifacts.dll `
58
- --target=ArtifactsTest --arch=${{ inputs.arch }} --dotnet_version=${{ matrix.dotnetVersion }} `
59
- --docker_distro=${{ matrix.dockerDistro }}
58
+ --target=ArtifactsTest --arch=${{ inputs.arch }} --dotnet_version=${{ matrix.dotnet_version }} `
59
+ --docker_distro=${{ matrix.docker_distro }}
Original file line number Diff line number Diff line change 7
7
arch :
8
8
required : true
9
9
type : string
10
- dockerDistros :
10
+ docker_distros :
11
11
required : true
12
12
type : string
13
- dotnetVersions :
13
+ dotnet_versions :
14
14
required : true
15
15
type : string
16
16
env :
19
19
20
20
jobs :
21
21
docker :
22
- name : ${{ matrix.dockerDistro }} - net${{ matrix.dotnetVersion }}
22
+ name : ${{ matrix.docker_distro }} - net${{ matrix.dotnet_version }}
23
23
runs-on : ${{ inputs.runner }}
24
24
strategy :
25
25
fail-fast : false
26
26
matrix :
27
- dockerDistro : ${{ fromJson(inputs.dockerDistros ) }}
28
- dotnetVersion : ${{ fromJson(inputs.dotnetVersions ) }}
27
+ docker_distro : ${{ fromJson(inputs.docker_distros ) }}
28
+ dotnet_version : ${{ fromJson(inputs.dotnet_versions ) }}
29
29
steps :
30
30
-
31
31
name : Checkout
@@ -50,16 +50,16 @@ jobs:
50
50
uses : ./.github/actions/docker-test
51
51
with :
52
52
arch : ${{ inputs.arch }}
53
- dockerDistro : ${{ matrix.dockerDistro }}
54
- dotnetVersion : ${{ matrix.dotnetVersion }}
53
+ docker_distro : ${{ matrix.docker_distro }}
54
+ dotnet_version : ${{ matrix.dotnet_version }}
55
55
-
56
56
name : Docker Publish
57
57
if : success() && github.event_name != 'pull_request' && github.repository_owner == 'GitTools' && github.ref_name == 'main'
58
58
uses : ./.github/actions/docker-publish
59
59
with :
60
60
arch : ${{ inputs.arch }}
61
- dockerDistro : ${{ matrix.dockerDistro }}
62
- dotnetVersion : ${{ matrix.dotnetVersion }}
61
+ docker_distro : ${{ matrix.docker_distro }}
62
+ dotnet_version : ${{ matrix.dotnet_version }}
63
63
docker_registry_username : ${{ secrets.DOCKER_USERNAME }}
64
64
docker_registry_password : ${{ secrets.DOCKER_PASSWORD }}
65
65
github_registry_username : ${{ github.repository_owner }}
Original file line number Diff line number Diff line change 1
1
on :
2
2
workflow_call :
3
3
inputs :
4
- dockerDistros :
4
+ docker_distros :
5
5
required : true
6
6
type : string
7
- dotnetVersions :
7
+ dotnet_versions :
8
8
required : true
9
9
type : string
10
10
env :
13
13
14
14
jobs :
15
15
manifest :
16
- name : ${{ matrix.dockerDistro }} - net${{ matrix.dotnetVersion }}
16
+ name : ${{ matrix.docker_distro }} - net${{ matrix.dotnet_version }}
17
17
runs-on : ubuntu-24.04
18
18
strategy :
19
19
fail-fast : false
20
20
matrix :
21
- dockerDistro : ${{ fromJson(inputs.dockerDistros ) }}
22
- dotnetVersion : ${{ fromJson(inputs.dotnetVersions ) }}
21
+ docker_distro : ${{ fromJson(inputs.docker_distros ) }}
22
+ dotnet_version : ${{ fromJson(inputs.dotnet_versions ) }}
23
23
steps :
24
24
-
25
25
name : Checkout
37
37
if : success() && github.event_name != 'pull_request' && github.repository_owner == 'GitTools' && github.ref_name == 'main'
38
38
uses : ./.github/actions/docker-manifests
39
39
with :
40
- dockerDistro : ${{ matrix.dockerDistro }}
41
- dotnetVersion : ${{ matrix.dotnetVersion }}
40
+ docker_distro : ${{ matrix.docker_distro }}
41
+ dotnet_version : ${{ matrix.dotnet_version }}
42
42
docker_registry_username : ${{ secrets.DOCKER_USERNAME }}
43
43
docker_registry_password : ${{ secrets.DOCKER_PASSWORD }}
44
44
github_registry_username : ${{ github.repository_owner }}
Original file line number Diff line number Diff line change 1
1
on :
2
2
workflow_call :
3
3
outputs :
4
- dockerDistros :
4
+ docker_distros :
5
5
description : ' List of Docker distros'
6
- value : ${{ jobs.set_matrix.outputs.dockerDistros }}
7
- dotnetVersions :
6
+ value : ${{ jobs.set_matrix.outputs.docker_distros }}
7
+ dotnet_versions :
8
8
description : ' List of .NET versions'
9
- value : ${{ jobs.set_matrix.outputs.dotnetVersions }}
9
+ value : ${{ jobs.set_matrix.outputs.dotnet_versions }}
10
10
jobs :
11
11
prepare :
12
12
name : ${{ matrix.os }}
51
51
name : Set Matrix
52
52
runs-on : ubuntu-24.04
53
53
outputs :
54
- dockerDistros : ${{ steps.set_matrix.outputs.dockerDistros }}
55
- dotnetVersions : ${{ steps.set_matrix.outputs.dotnetVersions }}
54
+ docker_distros : ${{ steps.set_matrix.outputs.docker_distros }}
55
+ dotnet_versions : ${{ steps.set_matrix.outputs.dotnet_versions }}
56
56
steps :
57
57
-
58
58
name : Checkout
Original file line number Diff line number Diff line change 1
1
on :
2
2
workflow_call :
3
3
inputs :
4
- dotnetVersions :
4
+ dotnet_versions :
5
5
required : true
6
6
type : string
7
7
env :
10
10
11
11
jobs :
12
12
unit_test :
13
- name : ${{ matrix.os }} - net${{ matrix.dotnetVersion }}
13
+ name : ${{ matrix.os }} - net${{ matrix.dotnet_version }}
14
14
env :
15
15
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
16
16
strategy :
17
17
fail-fast : false
18
18
matrix :
19
19
os : [windows-2025, ubuntu-24.04, macos-15]
20
- dotnetVersion : ${{ fromJson(inputs.dotnetVersions ) }}
20
+ dotnet_version : ${{ fromJson(inputs.dotnet_versions ) }}
21
21
22
22
runs-on : ${{ matrix.os }}
23
23
steps :
@@ -32,11 +32,11 @@ jobs:
32
32
-
33
33
name : ' [Unit Test]'
34
34
shell : pwsh
35
- run : dotnet run/build.dll --target=Test --dotnet_version=${{ matrix.dotnetVersion }}
35
+ run : dotnet run/build.dll --target=Test --dotnet_version=${{ matrix.dotnet_version }}
36
36
37
37
-
38
38
name : Test Summary
39
39
uses :
test-summary/[email protected]
40
- if : matrix.dotnetVersion == '9.0'
40
+ if : matrix.dotnet_version == '9.0'
41
41
with :
42
42
paths : artifacts/test-results/*.results.xml
Original file line number Diff line number Diff line change 54
54
needs : [ prepare ]
55
55
uses : ./.github/workflows/_unit_tests.yml
56
56
with :
57
- dotnetVersions : ${{ needs.prepare.outputs.dotnetVersions }}
57
+ dotnet_versions : ${{ needs.prepare.outputs.dotnet_versions }}
58
58
secrets : inherit
59
59
60
60
artifacts_windows_test :
77
77
with :
78
78
runner : ${{ matrix.runner }}
79
79
arch : ${{ matrix.arch }}
80
- dockerDistros : ${{ needs.prepare.outputs.dockerDistros }}
81
- dotnetVersions : ${{ needs.prepare.outputs.dotnetVersions }}
80
+ docker_distros : ${{ needs.prepare.outputs.docker_distros }}
81
+ dotnet_versions : ${{ needs.prepare.outputs.dotnet_versions }}
82
82
83
83
docker_linux_images :
84
84
needs : [ prepare, build ]
@@ -96,17 +96,17 @@ jobs:
96
96
with :
97
97
runner : ${{ matrix.runner }}
98
98
arch : ${{ matrix.arch }}
99
- dockerDistros : ${{ needs.prepare.outputs.dockerDistros }}
100
- dotnetVersions : ${{ needs.prepare.outputs.dotnetVersions }}
99
+ docker_distros : ${{ needs.prepare.outputs.docker_distros }}
100
+ dotnet_versions : ${{ needs.prepare.outputs.dotnet_versions }}
101
101
secrets : inherit
102
102
103
103
docker_linux_manifests :
104
104
needs : [ prepare, docker_linux_images ]
105
105
name : Docker Manifests
106
106
uses : ./.github/workflows/_docker_manifests.yml
107
107
with :
108
- dockerDistros : ${{ needs.prepare.outputs.dockerDistros }}
109
- dotnetVersions : ${{ needs.prepare.outputs.dotnetVersions }}
108
+ docker_distros : ${{ needs.prepare.outputs.docker_distros }}
109
+ dotnet_versions : ${{ needs.prepare.outputs.dotnet_versions }}
110
110
secrets : inherit
111
111
112
112
publish :
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ public override void Run(BuildContext context)
8
8
{
9
9
if ( context . BuildSystem ( ) . IsRunningOnGitHubActions )
10
10
{
11
- context . GitHubActions ( ) . Commands . SetOutputParameter ( "dockerDistros " , context . SerializeJson ( Constants . DockerDistros ) ) ;
12
- context . GitHubActions ( ) . Commands . SetOutputParameter ( "dotnetVersions " , context . SerializeJson ( Constants . DotnetVersions ) ) ;
11
+ context . GitHubActions ( ) . Commands . SetOutputParameter ( "docker_distros " , context . SerializeJson ( Constants . DockerDistros ) ) ;
12
+ context . GitHubActions ( ) . Commands . SetOutputParameter ( "dotnet_versions " , context . SerializeJson ( Constants . DotnetVersions ) ) ;
13
13
}
14
14
else
15
15
{
You can’t perform that action at this time.
0 commit comments