diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1f8c6c1bbfe11676a25d1904ee01370478cfc998..548677eb7f01624e08c7759273074c7779cf244b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,13 +1,12 @@
 ---
-image:
-  name: sonarsource/sonar-scanner-cli:${SONAR_SCANNER_CLI_VERSION}
 stages:
   - sonarqube
-test:
+sonarqube:
+  image: sonarsource/sonar-scanner-cli:${SONAR_SCANNER_CLI_VERSION}
   stage: sonarqube
   variables:
     SONAR_PROJECT_BASE_DIR: "$CI_PROJECT_DIR"
   script:
-    - /usr/bin/entrypoint.sh sonar-scanner -Dsonar.projectKey="$CI_PROJECT_NAME"  # sonar.projectKey defines the name of the project in SonarQube. In this example it uses the same name of the project in Gitlab.
-  tags:  # NOT to be confused with git tags. This is GitLab tag
+    - /usr/bin/entrypoint.sh sonar-scanner -Dsonar.projectKey="$CI_PROJECT_NAME"
+  tags:
     - sonarqube