Make CI build not fail for PR repos without dockerhub creds

This commit is contained in:
Griatch 2022-01-19 21:43:03 +01:00
parent 925dd4ac20
commit 6a76ad2803

View file

@ -121,7 +121,7 @@ jobs:
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
if: matrix.TESTING_DB == 'sqlite3' && matrix.python-version == 3.7
if: matrix.TESTING_DB == 'sqlite3' && matrix.python-version == 3.7 && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop')
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}