Fix deploy jobs to only run when dependencies succeed
Change 'when: always' to 'when: on_success' in deploy rules. 'when: always' was overriding the needs behavior, causing deploys to run even when build_image or other dependencies failed.
This commit is contained in:
@@ -256,7 +256,7 @@ deploy_stage:
|
||||
agent: esv/bsf/bsf-integration/orchard/orchard-mvp:orchard-stage
|
||||
rules:
|
||||
- if: '$CI_COMMIT_BRANCH == "main"'
|
||||
when: always
|
||||
when: on_success
|
||||
|
||||
# Deploy feature branch to dev namespace
|
||||
deploy_feature:
|
||||
@@ -295,7 +295,7 @@ deploy_feature:
|
||||
agent: esv/bsf/bsf-integration/orchard/orchard-mvp:orchard
|
||||
rules:
|
||||
- if: '$CI_COMMIT_BRANCH && $CI_COMMIT_BRANCH != "main"'
|
||||
when: always
|
||||
when: on_success
|
||||
|
||||
# Cleanup feature branch deployment
|
||||
cleanup_feature:
|
||||
|
||||
Reference in New Issue
Block a user