GitLab CI/CD Integration
Releasaurus provides seamless integration with GitLab CI/CD through the official [releasaurus-component]. This component automates your release workflow directly in your GitLab project, eliminating the need to run Releasaurus commands manually. See component [documentation][releasaurus-component] for all available options.
Basic Setup
Step 1: Create the Pipeline Configuration
Create a .gitlab-ci.yml file in your repository or add the following to your
existing pipeline:
include:
- component: gitlab.com/rgon/releasaurus-component/releasaurus@~latest
inputs:
token: $GITLAB_TOKEN
Step 2: Configure Project Permissions
Ensure your GitLab project has the correct permissions:
- Go to Settings → CI/CD → Variables
- Add a project variable
GITLAB_TOKENwith a Personal Access Token that has:apiscopewrite_repositoryscope
Step 3: Project Access Token (Recommended)
For better security, use a Project Access Token instead of a Personal Access Token:
- Go to Settings → Access Tokens
- Create a new token with:
- Token name:
releasaurus-ci - Role:
Maintainer - Scopes:
api,write_repository
- Token name:
- Copy the generated token
- Go to Settings → CI/CD → Variables
- Add variable
GITLAB_TOKENwith the project access token as the value - Mark it as Protected and Masked