Fix docker push on version tag or latest/master

This commit is contained in:
Simon Prévost 2021-02-10 20:37:23 -05:00
parent 0710aad821
commit c0757c15f3

View File

@ -71,6 +71,7 @@ jobs:
run: mix coveralls.post --token ${{ secrets.COVERALLS_REPO_TOKEN }} --name 'github-actions' --branch ${{ github.ref }} --committer ${{ github.actor }} --sha ${{ github.sha }}
- uses: docker/build-push-action@v1
if: ${{ startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master' }}
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}