Plugin: provider-gitlab
Publishes releases to GitLab. It supports GitLab.com and self-hosted GitLab instances through a configurable base URL.
Installation
Section titled “Installation”Binary
Section titled “Binary”semrel plugin install @semrel/provider-gitlabsemrel plugin install downloads the binary to .semrel/plugins/ and updates .semrel.lock. Commit .semrel.lock to pin the version for your team.
Docker
Section titled “Docker”Pre-built, signed multi-platform images (linux/amd64, linux/arm64) are published on every release:
docker pull ghcr.io/semrels/provider-gitlab:latestVerify the image signature with cosign:
cosign verify ghcr.io/semrels/provider-gitlab:latest \ --certificate-identity-regexp 'https://github.com/SemRels/provider-gitlab/.github/workflows/release.yml.*' \ --certificate-oidc-issuer https://token.actions.githubusercontent.comConfiguration
Section titled “Configuration”version: 1plugins: - uses: @semrel/provider-gitlab args: # token is read from SEMREL_PLUGIN_TOKEN env var base_url: 'https://gitlab.com' project_id: 12345678 milestone: v1.4.0Environment Variables
Section titled “Environment Variables”| Name | Required | Default | Description |
|---|---|---|---|
SEMREL_PLUGIN_TOKEN | yes | — | GitLab token used to create the release. |
SEMREL_PLUGIN_BASE_URL | no | https://gitlab.com | Base URL for the GitLab instance. |
SEMREL_PLUGIN_PROJECT_ID | no | current project | Numeric or URL-encoded project identifier. |
SEMREL_PLUGIN_MILESTONE | no | — | Optional milestone to associate with the release. |
Release Context Variables
Section titled “Release Context Variables”SEMREL_TAG_NAMESEMREL_NEXT_VERSIONSEMREL_CURRENT_VERSIONSEMREL_CHANGELOGSEMREL_DRY_RUN
Behavior
Section titled “Behavior”For v1.4.0, the provider can create a GitLab release tied to the tag, attach the changelog text, and link the configured milestone.