diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ed49385a66d7dab79a015069281f660e02aebe73..89aec5bdb4db0080f7c9a04fda28c7c31dd4c2ef 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -86,6 +86,8 @@ aggregate-docs:
 bundle-raspberrypi4-64:
   extends: .build-rauc-bundle
   stage: update
+  # Depend on the build job to prevent repeating build failures.
+  needs: [linux-raspberrypi4-64]
   variables:
     MACHINE: raspberrypi4-64
     CI_ONIRO_BUILD_FLAVOUR: linux