Multi-stage builds in CI pipelines