1
0
mirror of https://github.com/mastodon/mastodon synced 2024-11-27 14:28:24 +09:00

Skip Docker Hub login for pull requests (#17625)

* Skip Docker Hub login for pull requests

* Add support pr tag
This commit is contained in:
Yamagishi Kazutoshi 2022-02-24 00:44:16 +09:00 committed by GitHub
parent d21bedc492
commit b950807fd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,6 +21,7 @@ jobs:
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
if: github.event_name != 'pull_request'
- uses: docker/metadata-action@v3 - uses: docker/metadata-action@v3
id: meta id: meta
with: with:
@ -30,6 +31,7 @@ jobs:
tags: | tags: |
type=edge,branch=main type=edge,branch=main
type=semver,pattern={{ raw }} type=semver,pattern={{ raw }}
type=ref,event=pr
- uses: docker/build-push-action@v2 - uses: docker/build-push-action@v2
with: with:
context: . context: .