Avoid CI error for PR repos with no docker creds

This commit is contained in:
Griatch 2022-01-19 21:44:38 +01:00
parent 4375972281
commit c570afbf84

View file

@ -119,7 +119,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 }}