diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7824092524b138b5574a82bf3ea2d9d68b5da887..03241f7ad4d5021e7b33e903017c235ee6547c43 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -183,6 +183,10 @@ build_gpu_image:
       if [ "$FAILED" = true ]; then
         exit 1
       fi
+  rules:
+    - if: $SKIP_GPU_BUILD == "true"
+      when: never
+    - when: always
 
 build_ood_image:
   stage: build