diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c65b3f55106589c91f1b90ef1ad22fccf77f3643..257a935a7729ad58ad71b66c46acbed62420cb7c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -45,4 +45,7 @@ dags_rsync_community:
   stage: deploy
   script:
     - gcloud auth activate-service-account --key-file $OSDU_GCP_SVC_ACCT
-    - gsutil -m rsync -x "\.git.*|tests/.*|plugins/tests.*$" -r "$PWD" $OSDU_GCP_DEPL_TARGET
\ No newline at end of file
+    - gsutil -m rsync -x "\.git.*|tests/.*|plugins/tests.*$" -r "$PWD" $
+  only:
+    variables:
+        - $CI_COMMIT_REF_PROTECTED
\ No newline at end of file