debian-mirror-gitlab/doc/ci/examples/README.md

91 lines
4.6 KiB
Markdown
Raw Normal View History

2018-03-17 18:26:18 +05:30
---
comments: false
---
2015-09-25 12:07:36 +05:30
2018-03-17 18:26:18 +05:30
# GitLab CI/CD Examples
2016-09-29 09:46:39 +05:30
2018-12-05 23:21:45 +05:30
A collection of [`.gitlab-ci.yml` template files][gitlab-ci-templates] is maintained in GitLab. When you create a new file via the UI,
GitLab will give you the option to choose one of these templates.
2018-03-17 18:26:18 +05:30
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.
2016-09-29 09:46:39 +05:30
2018-03-17 18:26:18 +05:30
There's also a collection of repositories with [example projects](https://gitlab.com/gitlab-examples) for various languages. You can fork an adjust them to your own needs.
2017-08-17 22:00:37 +05:30
2018-03-17 18:26:18 +05:30
## Languages, frameworks, OSs
2017-08-17 22:00:37 +05:30
2018-03-17 18:26:18 +05:30
- **PHP**:
- [Testing a PHP application](php.md)
- [Run PHP Composer & NPM scripts then deploy them to a staging server](deployment/composer-npm-deploy.md)
- [How to test and deploy Laravel/PHP applications with GitLab CI/CD and Envoy](laravel_with_gitlab_and_envoy/index.md)
- **Ruby**: [Test and deploy a Ruby application to Heroku](test-and-deploy-ruby-application-to-heroku.md)
- **Python**: [Test and deploy a Python application to Heroku](test-and-deploy-python-application-to-heroku.md)
2018-11-08 19:23:39 +05:30
- **Java**:
- [Deploy a Spring Boot application to Cloud Foundry with GitLab CI/CD](deploy_spring_boot_to_cloud_foundry/index.md)
- [Continuous Delivery of a Spring Boot application with GitLab CI and Kubernetes](https://about.gitlab.com/2016/12/14/continuous-delivery-of-a-spring-boot-application-with-gitlab-ci-and-kubernetes/)
2018-03-17 18:26:18 +05:30
- **Scala**: [Test a Scala application](test-scala-application.md)
- **Clojure**: [Test a Clojure application](test-clojure-application.md)
- **Elixir**:
2018-03-27 19:54:05 +05:30
- [Testing a Phoenix application with GitLab CI/CD](test_phoenix_app_with_gitlab_ci_cd/index.md)
2018-03-17 18:26:18 +05:30
- [Building an Elixir Release into a Docker image using GitLab CI](https://about.gitlab.com/2016/08/11/building-an-elixir-release-into-docker-image-using-gitlab-ci-part-1/)
- **iOS and macOS**:
- [Setting up GitLab CI for iOS projects](https://about.gitlab.com/2016/03/10/setting-up-gitlab-ci-for-ios-projects/)
- [How to use GitLab CI and MacStadium to build your macOS or iOS projects](https://about.gitlab.com/2017/05/15/how-to-use-macstadium-and-gitlab-ci-to-build-your-macos-or-ios-projects/)
- **Android**: [Setting up GitLab CI for Android projects](https://about.gitlab.com/2016/11/30/setting-up-gitlab-ci-for-android-projects/)
- **Debian**: [Continuous Deployment with GitLab: how to build and deploy a Debian Package with GitLab CI](https://about.gitlab.com/2016/10/12/automated-debian-package-build-with-gitlab-ci/)
- **Maven**: [How to deploy Maven projects to Artifactory with GitLab CI/CD](artifactory_and_gitlab/index.md)
2017-08-17 22:00:37 +05:30
2018-05-09 12:01:36 +05:30
### Game development
- [DevOps and Game Dev with GitLab CI/CD](devops_and_game_dev_with_gitlab_ci_cd/index.md)
2018-03-17 18:26:18 +05:30
### Miscellaneous
2017-08-17 22:00:37 +05:30
2018-03-17 18:26:18 +05:30
- [Using `dpl` as deployment tool](deployment/README.md)
- [The `.gitlab-ci.yml` file for GitLab itself](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/.gitlab-ci.yml)
2017-08-17 22:00:37 +05:30
2018-11-18 11:00:15 +05:30
## Test Reports
[Collect test reports in Verify stage](../junit_test_reports.md).
2018-11-08 19:23:39 +05:30
## Code Quality analysis
2017-08-17 22:00:37 +05:30
2018-11-08 19:23:39 +05:30
**(Starter)** [Analyze your project's Code Quality](code_quality.md).
2017-08-17 22:00:37 +05:30
2018-05-09 12:01:36 +05:30
## Static Application Security Testing (SAST)
**(Ultimate)** [Scan your code for vulnerabilities](https://docs.gitlab.com/ee/ci/examples/sast.html)
## Dependency Scanning
**(Ultimate)** [Scan your dependencies for vulnerabilities](https://docs.gitlab.com/ee/ci/examples/dependency_scanning.html)
## Container Scanning
2017-08-17 22:00:37 +05:30
2018-05-09 12:01:36 +05:30
[Scan your Docker images for vulnerabilities](container_scanning.md)
2017-08-17 22:00:37 +05:30
2018-05-09 12:01:36 +05:30
## Dynamic Application Security Testing (DAST)
2017-08-17 22:00:37 +05:30
2018-03-17 18:26:18 +05:30
Scan your app for vulnerabilities with GitLab [Dynamic Application Security Testing (DAST)](dast.md).
2017-08-17 22:00:37 +05:30
2018-05-09 12:01:36 +05:30
## Browser Performance Testing with Sitespeed.io
2017-08-17 22:00:37 +05:30
2018-03-17 18:26:18 +05:30
Analyze your [browser performance with Sitespeed.io](browser_performance.md).
2017-08-17 22:00:37 +05:30
2018-05-09 12:01:36 +05:30
## GitLab CI/CD for Review Apps
2017-08-17 22:00:37 +05:30
2018-03-17 18:26:18 +05:30
- [Example project](https://gitlab.com/gitlab-examples/review-apps-nginx/) that shows how to use GitLab CI/CD for [Review Apps](../review_apps/index.html).
- [Dockerizing GitLab Review Apps](https://about.gitlab.com/2017/07/11/dockerizing-review-apps/)
2017-08-17 22:00:37 +05:30
2018-05-09 12:01:36 +05:30
## GitLab CI/CD for GitLab Pages
2017-08-17 22:00:37 +05:30
2018-03-17 18:26:18 +05:30
See the documentation on [GitLab Pages](../../user/project/pages/index.md) for a complete overview.
2017-08-17 22:00:37 +05:30
2018-03-17 18:26:18 +05:30
## Contributing
2017-08-17 22:00:37 +05:30
2018-03-17 18:26:18 +05:30
Contributions are very 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](https://about.gitlab.com/community-writers/)
to get paid for writing complete articles for GitLab.
2016-09-29 09:46:39 +05:30
2018-12-05 23:21:45 +05:30
[gitlab-ci-templates]: https://gitlab.com/gitlab-org/gitlab-ce/tree/master/lib/gitlab/ci/templates