diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index edf2d67681b0f695afcb6e5251e09a2999928af8..e4d16acb110c6014224a1cb0e52efafa17e237ab 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -111,6 +111,8 @@ deploy-dev:
   dependencies:
     - build
   script:
+    - echo "CI_COMMIT_BRANCH $CI_COMMIT_BRANCH"
+    - echo "CI_COMMIT_REF_NAME $CI_COMMIT_REF_NAME"
     # Copie de la branche / du tag
     - ./scripts/deploy-version.sh $CI_COMMIT_REF_NAME $DEV_LOGIN $DEV_HOST $DEV_PATH
 
@@ -118,7 +120,7 @@ deploy-dev:
 deploy-ovh-dev:
   stage: deploy-dev
   only:
-      - $CI_COMMIT_REF_NAME == "devel"
+      - $CI_COMMIT_BRANCH == "devel"
   dependencies:
     - build
   script: