Don't push preleases to Docker Hub, refs #940

This commit is contained in:
Simon Willison 2020-09-14 15:09:03 -07:00 committed by GitHub
commit cb515a9d75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,8 +58,7 @@ jobs:
deploy_docker:
runs-on: ubuntu-latest
needs: [deploy]
if: |
!(contains(github.ref, 'a') || contains(github.ref, 'b'))
if: "!github.event.release.prerelease"
steps:
- uses: actions/checkout@v2
- name: Build and push to Docker Hub