ci-cd-gitlab-rails
Installation
SKILL.md
GitLab CI for Rails
The same principles as GitHub Actions, different YAML. If you're on GitLab, use the platform's native CI rather than mixing in Jenkins / GitHub Actions. Auto DevOps is tempting but opinionated — overrides are common.
The opinion
One
.gitlab-ci.ymlper repo, stages in order (build → test → security → deploy). Usecachefor gems / yarn. Useservicesfor Postgres + Redis. Useparallel: Nfor RSpec sharding. Deploy via Kamal in adeploystage gated on protectedmainbranch + manual approval for production. Use OIDC (GitLab CI ID Token) for cloud auth — never static keys in CI variables.