From 723f7eef39c7bc874078172d550994953d177ddd Mon Sep 17 00:00:00 2001 From: Leander Karp <karp@cl.uni-heidelberg.de> Date: Mon, 9 Sep 2024 19:05:31 +0200 Subject: [PATCH] Make `testing` optional --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index adb629a..11a0ee0 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] -- GitLab