CI/CD examples

  • Tier: Free, Premium, Ultimate
  • Offering: GitLab.com, GitLab Self-Managed, GitLab Dedicated

Use these examples to implement GitLab CI/CD for your specific use case.

Examples

Use caseResource
Deployment with DplDeploy applications using the Dpl tool
GitLab PagesPublish static websites with automatic CI/CD deployment
Multi-project pipelineBuild, test, and deploy using multi-project pipelines
npm with semantic-releasePublish npm packages to the GitLab package registry
Composer and npm with SCPDeploy Composer and npm scripts using SCP
PHP with PHPUnit and atoumTest PHP projects
Secrets management with VaultAuthenticate and read secrets with HashiCorp Vault

Community-contributed examples

These examples are maintained by the community rather than GitLab. Most example projects are hosted on GitLab and can be forked and adapted for your own needs.

Use caseResource
ClojureTest a Clojure application
Game developmentSet up CI/CD for game development
Java with MavenDeploy Maven projects to Artifactory
Java with Spring BootDeploy a Spring Boot application to Cloud Foundry
Parallel testing Ruby & JSRun parallel tests for Ruby and JavaScript
Python on HerokuTest and deploy a Python application to Heroku
Review apps with NGINXSet up review apps with NGINX
Ruby on HerokuTest and deploy a Ruby application to Heroku
Scala on HerokuTest and deploy a Scala application to Heroku

CI/CD migration examples