File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -343,25 +343,25 @@ jobs:
343
343
344
344
-
345
345
name : Login to GitHub Container Registry
346
- if : success() && github.event_name != 'pull_request'
346
+ if : success() && github.event_name != 'pull_request' && github.repository == 'GitTools/GitVersion'
347
347
uses : docker/login-action@v1
348
348
with :
349
349
registry : ghcr.io
350
350
username : ${{ github.repository_owner }}
351
351
password : ${{ secrets.DOCKER_GITHUB_TOKEN }}
352
352
-
353
353
name : ' [Docker Build/Test/Publish (amd64)] GitHub Container Registry'
354
- if : success() && github.event_name != 'pull_request'
354
+ if : success() && github.event_name != 'pull_request' && github.repository == 'GitTools/GitVersion'
355
355
shell : pwsh
356
356
run : dotnet run/docker.dll --target=DockerPublish --arch amd64 --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry github
357
357
-
358
358
name : ' [Docker Build/Test/Publish (arm64)] GitHub Container Registry'
359
- if : success() && github.event_name != 'pull_request'
359
+ if : success() && github.event_name != 'pull_request' && github.repository == 'GitTools/GitVersion'
360
360
shell : pwsh
361
361
run : dotnet run/docker.dll --target=DockerPublish --arch arm64 --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry github
362
362
-
363
363
name : ' [Docker Publish Manifest] GitHub Container Registry'
364
- if : success() && github.event_name != 'pull_request'
364
+ if : success() && github.event_name != 'pull_request' && github.repository == 'GitTools/GitVersion'
365
365
shell : pwsh
366
366
run : dotnet run/docker.dll --target=DockerManifest --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry github
367
367
You can’t perform that action at this time.
0 commit comments