Welcome to Your New GitLab Setup!¶
This guide covers the essential aspects of using GitLab for version control, CI/CD, and review apps in our development workflow.
Getting Started with GitLab¶
GitLab is our primary platform for source code management, issue tracking, and continuous integration/deployment.
Key Features¶
Repository Management: Store and version your code
Issue Tracking: Track bugs, features, and tasks
Merge Requests: Code review and collaboration
Wiki: Project documentation
CI/CD Pipelines: Automated testing and deployment
Basic Workflow¶
Clone the repository to your local machine
Create a new branch for your feature/fix
Make your changes and commit them
Push your branch to GitLab
Create a merge request
Review and merge after approval
GitLab CI/CD¶
Our CI/CD pipeline automates testing, building, and deployment processes.
Pipeline Stages¶
Build: Compile and prepare the application
Test: Run automated tests
Deploy: Deploy to staging/production environments
Configuration¶
The pipeline is configured via .gitlab-ci.yml file in the repository root. This file defines:
Jobs and their dependencies
Docker images to use
Scripts to execute
Deployment targets
Video opportunity: Detailed walkthrough of .gitlab-ci.yml configuration
GitLab Review Apps¶
Review Apps provide temporary environments for each merge request, allowing you to preview changes before merging.
Benefits¶
Preview Changes: See your changes in a live environment
Stakeholder Review: Share links with non-technical team members
Testing: Test features in isolation
Quality Assurance: Catch issues before production
How It Works¶
Create a merge request
Review App automatically deploys your branch
Access the temporary environment via the provided URL
Review and test your changes
App is automatically destroyed when MR is merged/closed
Video opportunity: Setting up Review Apps configuration