From 15ce7e348c8ee74c1b252925b6e40bd889f3c465 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Tue, 11 May 2021 17:34:42 +0200 Subject: [PATCH] build docker images only on main --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0e7bd9e93..d7b7f54ec 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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