diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c7c1dfa5ee2b9a499fc489df1635c34aa40096fa..548087d800b8bd9212d47ac5f842467fb4a2057a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -129,7 +129,7 @@ deploy rrz master:
     - sh bin/enable_ssh
     - apk add git
   script:
-    - git push $PUBLIC_REPO master
+    - git push $PUBLIC_REPO HEAD:master
   only:
     - master