about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-03-14 22:43:49 -0400
committerGitHub <noreply@github.com>2023-03-15 03:43:49 +0100
commited887271f3985b00d97139ae25b73b1f062666be (patch)
tree3012687d062c270000ec08a7325f7c77a38487dd
parent50d39c275d07dfac75d9739d90fa2f1b5d3dc0cd (diff)
Skip Docker CI Login/Push on forks (#23564)
-rw-r--r--.github/workflows/build-image.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml
index 0ef0cdc17..a1db68e3b 100644
--- a/.github/workflows/build-image.yml
+++ b/.github/workflows/build-image.yml
@@ -33,7 +33,7 @@ jobs:
         with:
           username: ${{ secrets.DOCKERHUB_USERNAME }}
           password: ${{ secrets.DOCKERHUB_TOKEN }}
-        if: github.event_name != 'pull_request'
+        if: github.repository == 'mastodon/mastodon' && github.event_name != 'pull_request'
 
       - name: Log in to the Github Container registry
         uses: docker/login-action@v2
@@ -41,7 +41,7 @@ jobs:
           registry: ghcr.io
           username: ${{ github.actor }}
           password: ${{ secrets.GITHUB_TOKEN }}
-        if: github.event_name != 'pull_request'
+        if: github.repository == 'mastodon/mastodon' && github.event_name != 'pull_request'
 
       - uses: docker/metadata-action@v4
         id: meta