diff --git a/src/tests/ecoc22/.gitlab-ci.yml b/src/tests/ecoc22/.gitlab-ci.yml
index 8bf2929e669ba101b470d76b1ac52efaad75c720..0aa65e5569c552d085d45bbf4b56340e92bfba7d 100644
--- a/src/tests/ecoc22/.gitlab-ci.yml
+++ b/src/tests/ecoc22/.gitlab-ci.yml
@@ -40,6 +40,8 @@ end2end_test ecoc22:
   variables:
     TEST_NAME: 'ecoc22'
   stage: end2end_test
+  needs:
+    - build ecoc22
   before_script:
     - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
   script:
diff --git a/src/tests/ofc22/.gitlab-ci.yml b/src/tests/ofc22/.gitlab-ci.yml
index fcc11fee86ac60c2f1a0e5a96ee5d3612163f85a..271e398cfdb729389f3d5be96697b9f852ed97d6 100644
--- a/src/tests/ofc22/.gitlab-ci.yml
+++ b/src/tests/ofc22/.gitlab-ci.yml
@@ -40,6 +40,8 @@ end2end_test ofc22:
   variables:
     TEST_NAME: 'ofc22'
   stage: end2end_test
+  needs:
+    - build ofc22
   before_script:
     - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
   script: