GitLab
Source code hosting, issue tracking and CI/CD in one open-source platform.
Overview
GitLab is a complete DevOps platform. It hosts Git repositories and adds merge requests, issue boards, container registry and built-in CI/CD pipelines, so your code can be built, tested and deployed automatically.
The Community Edition can be installed on your own server, giving you a private alternative to hosted code platforms.
Where it is used
- Private code hosting for a company
- Automated build and deployment pipelines
- Team code review
- DevOps training
A minimal pipeline
Add a file named .gitlab-ci.yml to your repository:
stages: [build, test]
build-job:
stage: build
script:
- mvn -B package -DskipTests
test-job:
stage: test
script:
- mvn -B test
What you will cover
The key topics and features of GitLab
Git Repositories
Private or public repositories with branches and tags.
Merge Requests
Review code before it is merged.
CI/CD Pipelines
Automate build, test and deploy with .gitlab-ci.yml.
Issue Boards
Plan and track work next to your code.
Container Registry
Store Docker images alongside your projects.
Self-Hosted
Keep your source code in your own infrastructure.