GitLab CI/CD Generator
v1.2.1Generate GitLab CI pipeline YAML with test and build stages.
Generates GitLab CI/CD pipeline YAML with stages, jobs, caching, artifacts, and Docker-in-Docker support for common Node.js, Python, Go, and container build workflows.
How to use- →Select your language or Dockerfile-based workflow.
- →Configure stages (test, build, deploy) and set branch-specific rules.
- →Copy the output to .gitlab-ci.yml in your repository root.
Stages
buildtestdeploy
Variables
=
Cache
Jobs
.gitlab-ci.yml
image: node:18
stages:
- build
- test
- deploy
variables:
NODE_ENV: "production"
cache:
key: $CI_COMMIT_REF_SLUG
paths:
- node_modules/
build_app:
stage: build
script:
- npm ci
- npm run build
artifacts:
paths:
- dist/
test_app:
stage: test
script:
- npm ci
- npm test