diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ff96272bf1cf3273c12b631a1365a6fd10ae76ad..abc8576147c10df95f442bd96625708d3f996a19 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -171,7 +171,7 @@ db-copy-20-rec:
     - oc whoami
     - oc apply -f k8s/env/
     # Delete the previous pod to avoid data changes while migration is run by the new pod
-    - oc delete pod -l app=res-server; fi
+    - oc delete pod -l app=res-server
   tags:
     - ns-res-$NAMESPACE_ENV-syn