@@ -322,48 +322,48 @@ jobs:
322
322
dotnet-version : ' 6.0.x'
323
323
-
324
324
name : Login to DockerHub
325
- if : success() && github.event_name != 'pull_request'
325
+ if : success() && github.event_name != 'pull_request' && github.repository_owner == 'GitTools'
326
326
uses : docker/login-action@v1
327
327
with :
328
328
username : ${{ secrets.DOCKER_USERNAME }}
329
329
password : ${{ secrets.DOCKER_PASSWORD }}
330
330
-
331
331
name : ' [Docker Build/Test/Publish (amd64)] DockerHub'
332
- if : success() && github.event_name != 'pull_request'
332
+ if : success() && github.event_name != 'pull_request' && github.repository_owner == 'GitTools'
333
333
shell : pwsh
334
334
run : dotnet run/docker.dll --target=DockerPublish --arch amd64 --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry dockerhub
335
335
-
336
336
name : ' [Docker Build/Test/Publish (arm64)] DockerHub'
337
- if : success() && github.event_name != 'pull_request'
337
+ if : success() && github.event_name != 'pull_request' && github.repository_owner == 'GitTools'
338
338
shell : pwsh
339
339
run : dotnet run/docker.dll --target=DockerPublish --arch arm64 --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry dockerhub
340
340
-
341
341
name : ' [Docker Publish Manifest] DockerHub'
342
- if : success() && github.event_name != 'pull_request'
342
+ if : success() && github.event_name != 'pull_request' && github.repository_owner == 'GitTools'
343
343
shell : pwsh
344
344
run : dotnet run/docker.dll --target=DockerManifest --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry dockerhub
345
345
346
346
-
347
347
name : Login to GitHub Container Registry
348
- if : success() && github.event_name != 'pull_request' && github.repository == 'GitTools/GitVersion '
348
+ if : success() && github.event_name != 'pull_request' && github.repository_owner == 'GitTools'
349
349
uses : docker/login-action@v1
350
350
with :
351
351
registry : ghcr.io
352
352
username : ${{ github.repository_owner }}
353
353
password : ${{ secrets.DOCKER_GITHUB_TOKEN }}
354
354
-
355
355
name : ' [Docker Build/Test/Publish (amd64)] GitHub Container Registry'
356
- if : success() && github.event_name != 'pull_request' && github.repository == 'GitTools/GitVersion '
356
+ if : success() && github.event_name != 'pull_request' && github.repository_owner == 'GitTools'
357
357
shell : pwsh
358
358
run : dotnet run/docker.dll --target=DockerPublish --arch amd64 --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry github
359
359
-
360
360
name : ' [Docker Build/Test/Publish (arm64)] GitHub Container Registry'
361
- if : success() && github.event_name != 'pull_request' && github.repository == 'GitTools/GitVersion '
361
+ if : success() && github.event_name != 'pull_request' && github.repository_owner == 'GitTools'
362
362
shell : pwsh
363
363
run : dotnet run/docker.dll --target=DockerPublish --arch arm64 --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry github
364
364
-
365
365
name : ' [Docker Publish Manifest] GitHub Container Registry'
366
- if : success() && github.event_name != 'pull_request' && github.repository == 'GitTools/GitVersion '
366
+ if : success() && github.event_name != 'pull_request' && github.repository_owner == 'GitTools'
367
367
shell : pwsh
368
368
run : dotnet run/docker.dll --target=DockerManifest --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry github
369
369
0 commit comments