fix(ci): make infra-plan dependency optional for API/web pipelines

infra-apply needs infra-plan, but infra-plan only runs when infra/**
changes. API/web-triggered pipelines fail to create because the
dependency doesn't exist. Adding optional: true allows infra-apply
to run without infra-plan for manual triggers.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jgrusewski
2026-02-28 00:20:08 +01:00
parent 590883408a
commit c328e3eb3a

View File

@@ -1197,6 +1197,7 @@ infra-apply:
- docker
needs:
- job: infra-plan
optional: true
rules:
- if: $CI_COMMIT_BRANCH == "main" && $CI_PIPELINE_SOURCE == "push"
changes: