Introduced in GitLab 8.15.
Auto deploy is an easy way to configure GitLab CI for the deployment of your
application. GitLab Community maintains a list of
templates for various infrastructure providers and deployment scripts
powering them. These scripts are responsible for packaging your application,
setting up the infrastructure and spinning up necessary services (for
example a database).
You can use project services to store credentials to your infrastructure provider and they will be available during the deployment.
The list of supported auto deploy templates is available here.
- Enable a deployment project service to store your credentials. For example, if you want to deploy to OpenShift you have to enable Kubernetes service.
- Configure GitLab Runner to use Docker or Kubernetes executor with privileged mode enabled.
- Navigate to the "Project" tab and click "Set up auto deploy" button.
- Select a template.
- Commit your changes and create a merge request.
- Test your deployment configuration using a Review App that was created automatically for you.