diff --git a/generate-deploy-stages.sh b/generate-deploy-stages.sh
index 69fbbe06dedc1f7c58d034b16216f85f744c8162..bde1925d67286b8f2bcacf765341ffd1ea57813e 100644
--- a/generate-deploy-stages.sh
+++ b/generate-deploy-stages.sh
@@ -21,7 +21,7 @@ if [ ! -z "${TAG}" ]; then
       export BASE_IMAGE_TYPE=${second_dir}
       export TAG=${TAG}
       export DIT_REGISTRY=${DIT_REGISTRY}
-      cat ${template} | CI_JOB_TOKEN='$CI_JOB_TOKEN' CI_REGISTRY='$CI_REGISTRY' envsubst >> deploy.yml
+      cat ${template} | CI_JOB_TOKEN='$CI_JOB_TOKEN' envsubst >> deploy.yml
     fi
   done
 fi