gearheads
/
mastodon
Archived
2
0
Fork 0

Skip Docker CI Login/Push on forks (#23564)

gh/stable
Nick Schonning 2023-03-14 22:43:49 -04:00 committed by Claire
parent 0529fb0866
commit 0891a8d4b0
1 changed files with 2 additions and 2 deletions

View File

@ -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