diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index adb629a4a8ad76ade528915b3ffea11334d06c61..11a0ee01be424756d5efacd61fc2583929378b95 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -29,6 +29,8 @@ docker-build:
         name: gcr.io/kaniko-project/executor:debug
         entrypoint: [""]
     stage: build
+    # Run build stage regardless of the status of the test stage
+    when: always
     before_script:
         - mkdir -p /kaniko/.docker
         - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
@@ -37,4 +39,3 @@ docker-build:
         - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
     only:
         - master
-    needs: [testing]