gitlab-org--gitlab-foss/doc/ci/examples
Marcel Amirault 143872fa52 Remove trailing whitespace in docs
Remove unneeded trailing whitespace in lines in
/development /ci /api and /administration docs.
2019-07-12 08:15:38 +00:00
..
artifactory_and_gitlab Update redirected links in CE part 1 2019-07-08 00:41:33 +00:00
deploy_spring_boot_to_cloud_foundry Remove trailing whitespace in docs 2019-07-12 08:15:38 +00:00
deployment Doc types on tutorials in top level examples folder, minor edits 2019-06-11 16:39:26 +00:00
devops_and_game_dev_with_gitlab_ci_cd Doc types on tutorials in top level examples folder, minor edits 2019-06-11 16:39:26 +00:00
end_to_end_testing_webdriverio Add lint rule that headings must increment one level at a time 2019-07-08 11:07:07 +00:00
laravel_with_gitlab_and_envoy Add blank lines around code blocks 2019-07-12 08:09:23 +00:00
test_phoenix_app_with_gitlab_ci_cd Update redirected links in CE part 1 2019-07-08 00:41:33 +00:00
browser_performance.md Convert absolute links to relative in /ci docs 2019-06-11 17:19:08 +00:00
code_climate.md Add quotes to redirect value 2019-06-13 07:31:34 +00:00
code_quality.md Convert absolute links to relative in /ci docs 2019-06-11 17:19:08 +00:00
container_scanning.md Convert absolute links to relative in /ci docs 2019-06-11 17:19:08 +00:00
dast.md Convert absolute links to relative in /ci docs 2019-06-11 17:19:08 +00:00
dependency_scanning.md Convert absolute links to relative in /ci docs 2019-06-11 17:19:08 +00:00
license_management.md Convert absolute links to relative in /ci docs 2019-06-11 17:19:08 +00:00
php.md Remove trailing whitespace in docs 2019-07-12 08:15:38 +00:00
README.md Changing badges to use parentheses not brackets 2019-07-08 08:50:38 +00:00
sast.md Convert absolute links to relative in /ci docs 2019-06-11 17:19:08 +00:00
sast_docker.md Convert absolute links to relative in /ci docs 2019-06-11 17:19:08 +00:00
test-and-deploy-python-application-to-heroku.md Doc types on tutorials in top level examples folder, minor edits 2019-06-11 16:39:26 +00:00
test-and-deploy-ruby-application-to-heroku.md Doc types on tutorials in top level examples folder, minor edits 2019-06-11 16:39:26 +00:00
test-clojure-application.md Update redirected links in CE part 1 2019-07-08 00:41:33 +00:00
test-phoenix-application.md Docs: comm article Phoenix App with GitLab CI/CD 2018-02-20 15:07:06 +00:00
test-scala-application.md Update redirected links in CE part 1 2019-07-08 00:41:33 +00:00

comments type
false index

GitLab CI/CD Examples

This page contains links to a variety of examples that can help you understand how to implement GitLab CI/CD for your specific use case.

Examples are available in several forms. As a collection of:

  • .gitlab-ci.yml template files maintained in GitLab. When you create a new file via the UI, GitLab will give you the option to choose one of these templates. This will allow you to quickly bootstrap your project for CI/CD. If your favorite programming language or framework are missing, we would love your help by sending a merge request with a new .gitlab-ci.yml to this project.
  • Repositories with example projects for various languages. You can fork and adjust them to your own needs. Projects include demonstrations of multi-project pipelines and using Review Apps with a static site served by nginx.
  • Examples and other resources listed below.

CI/CD examples

The following table lists examples with step-by-step tutorials that are contained in this section.

Use case Resource
Browser performance testing Browser Performance Testing with the Sitespeed.io container.
Clojure Test a Clojure application with GitLab CI/CD.
Deployment with Dpl Using dpl as deployment tool.
Elixir Testing a Phoenix application with GitLab CI/CD.
End-to-end testing End-to-end testing with GitLab CI/CD and WebdriverIO.
Game development DevOps and Game Dev with GitLab CI/CD.
GitLab Pages See the GitLab Pages documentation for a complete example of deploying a static site.
Java with Spring Boot Deploy a Spring Boot application to Cloud Foundry with GitLab CI/CD.
Java with Maven How to deploy Maven projects to Artifactory with GitLab CI/CD.
PHP with PHPunit, atoum Testing PHP projects.
PHP with NPM, SCP Running Composer and NPM scripts with deployment via SCP in GitLab CI/CD.
PHP with Laravel, Ennvoy Test and deploy Laravel applications with GitLab CI/CD and Envoy.
Python on Heroku Test and deploy a Python application with GitLab CI/CD.
Ruby on Heroku Test and deploy a Ruby application with GitLab CI/CD.
Scala on Heroku Test and deploy a Scala application to Heroku.

Contributing examples

Contributions are welcome! You can help your favorite programming language users and GitLab by sending a merge request with a guide for that language. You may want to apply for the GitLab Community Writers Program to get paid for writing complete articles for GitLab.

Adding templates to your GitLab installation (PREMIUM ONLY)

If you want to have customized examples and templates for your own self-managed GitLab instance available to your team, your GitLab administrator can designate an instance template repository that contains examples and templates specific to your enterprise.

Other resources

This section provides further resources to help you get familiar with various uses of GitLab CI/CD. Note that older articles and videos may not reflect the state of the latest GitLab release.

CI/CD in the cloud

For examples of setting up GitLab CI/CD for cloud-based environments, see:

See also the following video overviews:

Customer stories

For some customer experiences with GitLab CI/CD, see:

Getting started

For some examples to help get you started, see:

Implementing GitLab CI/CD

For examples of others who have implemented GitLab CI/CD, see:

Migrating to GitLab from third-party CI tools

Integrating GitLab CI/CD with other systems

To see how you can integrate GitLab CI/CD with third-party systems, see:

Mobile development

For help with using GitLab CI/CD for mobile application development, see: