GitLab Well Architected
Cookbook navigation
Prompts / Generate GitLab CI Templates

Generate GitLab CI Templates

AutomationCI/CDCicdDevopsStandardizationReleaseBeginner

Create reusable CI pipeline templates with security scanning and deployment strategies.

For GitLab Duo

prompt

Create a GitLab CI template for [PROJECT TYPE/TECH STACK]:

Requirements:
1. [BUILD REQUIREMENTS]
2. [TEST REQUIREMENTS]
3. [DEPLOYMENT REQUIREMENTS]

Include:
1. Reusable job definitions
2. Variables for customization
3. Security scanning
4. Deployment strategies
5. Documentation

Use the prompt

Include your build commands, runner environment, and deployment process. Review the generated configuration with your existing pipeline before adopting its jobs or defaults.