Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

1.4 KB
Raw Blame
id: gitlab-runner
name: GitLab Runner
version: "16.6"
description: Application that works with GitLab CI/CD to run jobs in a pipeline
icon: https://serverkit.ai/imgs/template-icons/gitlab-runner.png
website: https://docs.gitlab.com/runner/
documentation: https://docs.gitlab.com/runner/
categories:
  - devops
  - ci-cd
  - gitlab

variables:
  - name: GITLAB_URL
    description: GitLab instance URL
    default: https://gitlab.com
    required: true
  - name: REGISTRATION_TOKEN
    description: Runner registration token
    type: password
    required: true
  - name: RUNNER_NAME
    description: Runner name/description
    default: docker-runner

volumes:
  - name: config
    path: /etc/gitlab-runner
    description: Runner configuration
  - name: docker
    path: /var/run/docker.sock
    description: Docker socket

requirements:
  memory: 1GB
  storage: 10GB

compose:
  services:
    gitlab-runner:
      image: gitlab/gitlab-runner:v${VERSION:-16.6.0}
      container_name: ${APP_NAME}
      restart: unless-stopped
      volumes:
        - runner_config:/etc/gitlab-runner
        - /var/run/docker.sock:/var/run/docker.sock

  volumes:
    runner_config:

post_install: |
  docker exec ${APP_NAME} gitlab-runner register \
    --non-interactive \
    --url "${GITLAB_URL}" \
    --registration-token "${REGISTRATION_TOKEN}" \
    --executor "docker" \
    --docker-image alpine:latest \
    --description "${RUNNER_NAME}"