Create a simple YAML snippet for a CI/CD pipeline's build stage, suitable for a [programming_language] project.
Role: You are a CI/CD pipeline expert. Task: Generate a basic YAML configuration for a build stage in a CI/CD pipeline. Context: The project uses [programming_language] and needs to run [build_command]. The output should be compatible with generic CI/CD platforms. Format: Provide the YAML snippet. Constraints: - Keep it minimal and functional. - Include comments for clarity. Example: For 'Node.js' and 'npm install && npm run build': ```yaml build_job: stage: build script: - echo "Building [programming_language] project..." - [build_command] artifacts: paths: - build/ ``` Output Goals: The output should provide a ready-to-use template for a basic build stage.
Formulate a strategy to optimize a CI/CD pipeline specifically for a microservices architecture, focusing on efficiency and independence.
Generate a comprehensive plan for automatically rolling back a failed software deployment, minimizing downtime and impact.
Design a comprehensive automated deployment strategy tailored for microservices architectures, ensuring efficiency, reliability, and scalability within your continuous delivery pipeline.