build docker images only on main

This commit is contained in:
Maximilian Hils 2021-05-11 17:34:42 +02:00
parent dbc5352b5b
commit 15ce7e348c

View File

@ -178,7 +178,7 @@ jobs:
# Separate from everything else because slow.
build-and-deploy-docker:
if: github.repository == 'mitmproxy/mitmproxy' && github.event_name == 'push'
if: github.repository == 'mitmproxy/mitmproxy' && github.ref == 'refs/heads/main'
environment: deploy-docker
needs:
- test