diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 70e606fcad4a56bec026c6642ccf2e1b1825cbc6..e67e3b02e22a488d17faa137e9215d27f5e1da94 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -51,6 +51,8 @@ build-documentation:
     - cd $CI_PROJECT_DIR/docs
   script:
     - /bin/sh ./build-docs.sh
+  except:
+    - /^release\/.*/
   artifacts:
     paths:
       - docs/public
@@ -104,6 +106,8 @@ publish-docs-prod-2:
 sonarqube:
   stage: sonarqube
   image: sonarsource/sonar-scanner-cli:10.0
+  except:
+    - /^release\/.*/
   script:
     - sonar-scanner -Dsonar.login=$SONAR_TOKEN -Dproject.settings=./sonar.properties
   tags: