Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Skip Docker Hub login for pull requests (mastodon#17625)
Browse files Browse the repository at this point in the history
* Skip Docker Hub login for pull requests

* Add support pr tag
  • Loading branch information
ykzts authored Feb 23, 2022
1 parent d21bedc commit b950807
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
if: github.event_name != 'pull_request'
- uses: docker/metadata-action@v3
id: meta
with:
Expand All @@ -30,6 +31,7 @@ jobs:
tags: |
type=edge,branch=main
type=semver,pattern={{ raw }}
type=ref,event=pr
- uses: docker/build-push-action@v2
with:
context: .
Expand Down

0 comments on commit b950807

Please sign in to comment.