GitLab CI Pipeline Generator
Generate a .gitlab-ci.yml with a test job keyed to your lock file's cache, a Docker image build pushed to the GitLab registry and an optional manual deploy over SSH.
Free · No sign-up · Your inputs stay in your browser
Input
Generate a .gitlab-ci.yml pipeline
Output
.gitlab-ci.yml
747 characters
rules: replace only/except. Caches are keyed on the lock file, so a dependency change starts a fresh cache instead of restoring a stale one. Put SSH_PRIVATE_KEY in Settings > CI/CD > Variables as a protected, masked variable, so it is only exposed to protected branches.
Runs in this browser. Nothing you paste is sent to a server.
About this tool
Method, assumptions, practical next steps, and limits.
rules, not only/except
rules: replaced only and except and can combine conditions on the pipeline source, branch and changed files. Running tests on merge request pipelines and the default branch avoids duplicate pipelines for the same commit. See the CI/CD YAML reference.
Secrets
Store SSH_PRIVATE_KEY and registry tokens under Settings, CI/CD, Variables as protected and masked: protected variables are only exposed to pipelines on protected branches and tags, so a merge request from a fork cannot read them.