77 arch :
88 required : true
99 type : string
10- dockerDistros :
10+ docker_distros :
1111 required : true
1212 type : string
13- dotnetVersions :
13+ dotnet_versions :
1414 required : true
1515 type : string
1616env :
1919
2020jobs :
2121 docker :
22- name : ${{ matrix.dockerDistro }} - net${{ matrix.dotnetVersion }}
22+ name : ${{ matrix.docker_distro }} - net${{ matrix.dotnet_version }}
2323 runs-on : ${{ inputs.runner }}
2424 strategy :
2525 fail-fast : false
2626 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 ) }}
2929 steps :
3030 -
3131 name : Checkout
@@ -43,35 +43,23 @@ jobs:
4343 path : ${{ github.workspace }}/artifacts/packages/nuget
4444 -
4545 name : Set up Docker
46- uses : docker/setup-docker-action@v4
47- with :
48- daemon-config : ' { "features": { "containerd-snapshotter": true } }'
49- -
50- name : Setup QEMU
51- uses : docker/setup-qemu-action@v3
52- -
53- name : Setup Docker Buildx
54- uses : docker/setup-buildx-action@v3
55- with :
56- version : ' latest'
57- driver-opts : ' image=moby/buildkit:buildx-stable-1'
58- install : true
46+ uses : ./.github/actions/docker-setup
5947 -
6048 name : Docker Test
6149 if : success() && github.event_name == 'pull_request' || github.repository_owner != 'GitTools'
6250 uses : ./.github/actions/docker-test
6351 with :
6452 arch : ${{ inputs.arch }}
65- dockerDistro : ${{ matrix.dockerDistro }}
66- dotnetVersion : ${{ matrix.dotnetVersion }}
53+ docker_distro : ${{ matrix.docker_distro }}
54+ dotnet_version : ${{ matrix.dotnet_version }}
6755 -
6856 name : Docker Publish
6957 if : success() && github.event_name != 'pull_request' && github.repository_owner == 'GitTools' && github.ref_name == 'main'
7058 uses : ./.github/actions/docker-publish
7159 with :
7260 arch : ${{ inputs.arch }}
73- dockerDistro : ${{ matrix.dockerDistro }}
74- dotnetVersion : ${{ matrix.dotnetVersion }}
61+ docker_distro : ${{ matrix.docker_distro }}
62+ dotnet_version : ${{ matrix.dotnet_version }}
7563 docker_registry_username : ${{ secrets.DOCKER_USERNAME }}
7664 docker_registry_password : ${{ secrets.DOCKER_PASSWORD }}
7765 github_registry_username : ${{ github.repository_owner }}
0 commit comments