Global Image & Pipeline Stages
Pipeline Jobs (4)
# GitLab CI/CD Pipeline Configuration
# Generated by MiniToolDesk (https://minitooldesk.com/tools/gitlab-ci-generator/)
image: node:20-alpine
stages:
- lint
- test
- build
- deploy
variables:
NPM_CONFIG_CACHE: ".npm"
cache:
key: "$CI_COMMIT_REF_SLUG"
paths:
- node_modules/
- .npm/
lint-code:
stage: lint
before_script:
- npm ci
script:
- npm run lint
unit-tests:
stage: test
before_script:
- npm ci
script:
- npm test -- --coverage
artifacts:
paths:
- coverage/
expire_in: 7 days
build-app:
stage: build
before_script:
- npm ci
script:
- npm run build
artifacts:
paths:
- dist/
expire_in: 30 days
deploy-production:
stage: deploy
script:
- echo "Deploying production build..."
- ./scripts/deploy.sh
rules:
- if: $CI_COMMIT_BRANCH == "main"
GitLab CI/CD Validated
Save as .gitlab-ci.yml in your repository root and push to trigger pipeline runs.
Pin this tool to your browser side panel
Access this utility anytime with Alt+M without switching tabs. 100% offline & free.
How to build GitLab CI/CD pipelines visually
- 1Set your base Docker runner image and pipeline stages (lint, test, build, deploy).
- 2Choose an architecture preset or add jobs with custom script execution commands.
- 3Configure dependency caching and artifacts retention paths.
- 4Copy or download .gitlab-ci.yml directly into your Git repository root.
Robust DevOps CI/CD Workflows
Generates GitLab CI YAML conforming to official GitLab Runner schemas with zero server dependency.
Frequently Asked Questions
Enjoying GitLab CI YAML Generator?Help your engineering peers discover private, ad-free tools!
MiniToolDesk is 100% free and client-side. Your support keeps the web ad-free.
Related Developer Utilities
Docker Run to Compose Converter
Convert complex docker run CLI commands into clean, production-ready docker-compose.yml files
Nginx Config Generator
Visual builder for production-ready Nginx reverse proxy, SSL, and SPA configs
Dockerfile Multi-Stage Generator
Visual builder for security-hardened, multi-stage Dockerfiles across modern stacks
Kubernetes YAML Manifest Builder
Visual generator for Deployment, Service, Ingress, and ConfigMap manifests