Add limiters to not do multiple pushes in a test build

This commit is contained in:
Griatch 2022-01-16 17:13:39 +01:00
parent bd80bfe406
commit a58017f72f

View file

@ -123,7 +123,7 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push for master
if: github.ref == 'refs/heads/master'
if: matrix.TESTING_DB == 'sqlite3' && matrix.python-version == 3.7 && github.ref == 'refs/heads/master'
id: docker_build_master
uses: docker/build-push-action@v2
with:
@ -131,7 +131,7 @@ jobs:
tags: evennia/evennia:latest
-
name: Build and push for develop
if: github.ref == 'refs/heads/develop'
if: matrix.TESTING_DB == 'sqlite3' && matrix.python-version == 3.7 && github.ref == 'refs/heads/develop'
id: docker_build_develop
uses: docker/build-push-action@v2
with: