From 779c5aae0e7d938ccca98f7bede39bcd379f647f Mon Sep 17 00:00:00 2001 From: Vojtech Mares Date: Sun, 3 Sep 2023 11:48:02 +0200 Subject: [PATCH] ci: fix jobs always running when previous stage failed - future note: do not add `when: always`, it runs literarly always - not a surprise, but actually is --- .gitlab-ci.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 399573d..ceb2b2f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -53,7 +53,6 @@ deploy to staging (dry-run): ./charts/backoffice rules: - if: $CI_COMMIT_BRANCH == "main" - when: always deploy to production (dry-run): stage: deploy:dry-run @@ -80,7 +79,6 @@ deploy to production (dry-run): ./charts/backoffice rules: - if: $CI_COMMIT_BRANCH == "production" - when: always deploy to staging: stage: deploy @@ -109,7 +107,6 @@ deploy to staging: url: https://staging.backoffice.mareshq.com rules: - if: $CI_COMMIT_BRANCH == "main" - when: always deploy to production: stage: deploy @@ -138,4 +135,3 @@ deploy to production: url: https://backoffice.mareshq.com rules: - if: $CI_COMMIT_BRANCH == "production" - when: always