diff --git a/templates/gitlab-ci-python.yml b/templates/gitlab-ci-python.yml
index ea1ff3fa894bd03b1c813699987db55e30e32fa8..583a3239bd0759bed285fc05a1af1c5453b36f49 100644
--- a/templates/gitlab-ci-python.yml
+++ b/templates/gitlab-ci-python.yml
@@ -24,7 +24,7 @@ variables:
   TEST_REQUIREMENTS_FILE: test-requirements.txt
   SETUP_PY_DIR: "."
   # default production ref name (pattern)
-  PROD_REF: '/^master$/'
+  PROD_REF: '/^(master|main)$/'
   # default integration ref name (pattern)
   INTEG_REF: '/^develop$/'