diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 35412ae56cfa23d45faad0969ddfcfd8fab1d99c..26650e43b1d5fd7666056e1fa879a5fbf41fba23 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -17,6 +17,8 @@ stages:
 .build:
   stage: build
   image: docker:24
+  needs: 
+    - "format-data"
   variables:
     CONTEXT: "."
     DOCKERFILE: "Dockerfile"
@@ -57,6 +59,8 @@ get-pfam:
 
 format-pfam:
   image: python:3.11
+  stage: format-data
+
   needs:
     - "get-pfam"
   before_script: