1
0
Fork 0

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
This commit is contained in:
Vojtěch Mareš 2023-09-03 11:48:02 +02:00
parent bdb17ba397
commit 779c5aae0e
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D

View file

@ -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