Make release job wait for stage integration tests

Add needs: [integration_test_stage, changelog] to release job override.
This ensures the tag (which triggers prod deploy) is only created after
stage integration tests pass, preventing race conditions between pipelines.
This commit is contained in:
Mondo Diaz
2026-01-23 19:55:39 +00:00
parent a01c45cb64
commit ca46ab1ea0

View File

@@ -94,6 +94,11 @@ cve_sbom_analysis:
when: never when: never
- when: on_success - when: on_success
# Override release job to wait for stage integration tests before creating tag
# This ensures the tag (which triggers prod deploy) is only created after stage passes
release:
needs: [integration_test_stage, changelog]
# Full integration test suite template (for feature/stage deployments) # Full integration test suite template (for feature/stage deployments)
# Runs the complete pytest integration test suite against the deployed environment # Runs the complete pytest integration test suite against the deployed environment
.integration_test_template: &integration_test_template .integration_test_template: &integration_test_template