Pipeline gates
A pipeline builds, tests and publishes a versioned artifact before deployment. Each gate should reject a concrete failure; avoid deploying untested changes merely because checkout succeeded. Checkout succeeds, unit tests fail, and deployment must be skipped. Build and publish a versioned artifact only through the intended gates; preserve the failed test output for correction.
Checkout succeeds, unit tests fail, and deployment must be skipped. Build and publish a versioned artifact only through the intended gates; preserve the failed test output for correction.
A gate rejects work that fails a required check; an artifact is the immutable release output; provenance records the source and process producing it. Imagine unit tests pass but the Docker build uses a different dependency file. The test evidence may not describe the released image, so make build inputs explicit and test the relevant artifact where appropriate. Order checkout, dependencies, tests, build and publish with clear failure propagation. Record skipped stages separately from successful ones. Caching improves speed but can reuse stale inputs if keys omit important dependencies. A pipeline should produce one identifiable artifact and hand it to deployment, not rebuild differently in each environment. Review the workflow's failure paths so no conditional expression silently deploys when a required check has failed.
Build and publish a versioned artifact only through the intended gates; preserve the failed test output for correction.
A successful checkout is sufficient approval to deploy.