Environment Variables
Required
Section titled “Required”| Variable | Description |
|---|---|
GITLAB_SERVER_URL | GitLab instance URL (e.g., https://gitlab.com) |
GITLAB_PROJECT | Project path (e.g., mygroup/myproject) |
GITLAB_ACCESS_TOKEN | GitLab personal access token with api scope |
Optional
Section titled “Optional”| Variable | Description | Default |
|---|---|---|
CA_CERT_BASE64 | Base64-encoded CA certificate (PEM). Takes precedence over CA_CERT_PATH | — |
CA_CERT_PATH | Path to custom CA certificate file (PEM) | — |
EXECUTION_ENVIRONMENT | LocalDev, Standalone, Docker, CI | Docker (no need to set when running in Docker) |
DEPLOYMENT_STAGE | Development, Staging, Production | — |
SERVICE_HOST | Service host identifier | — |
Example
Section titled “Example”docker run -d \ --name gitlab-auto-merge \ -p 8711:8711 \ -e DEPLOYMENT_STAGE=Production \ -e GITLAB_SERVER_URL=https://gitlab.example.com \ -e GITLAB_PROJECT=mygroup/myproject \ -e GITLAB_ACCESS_TOKEN=glpat-xxxx \ neckarit/gitlab-auto-merge:latest \ --mode=Run