Commit e83b8b37 authored by Kevin Daudt's avatar Kevin Daudt 💻

Merge branch 'add-runner-profiles' into 'master'

Add runner profiles

See merge request !1
parents 231a2dc2 70e64f52
Pipeline #6128 passed with stage
in 45 seconds
......@@ -12,7 +12,7 @@ Copy the `example.env` file to`.env` and fill in the values.
* `GITLAB_REGISTRATION_TOKEN_DOCKER` - Gitlab CI/CD token that is just used for
jobs that need to build docker images. Jobs in this runner have access to the
docker socket, so have potentially root access to the host it's running on.
* `ARCH` - The architecture this runner is running on. This will appear in the
* `ALPINE_ARCH` - The architecture this runner is running on. This will appear in the
description for this runner and is added as a tag to limit jobs to specific
arches.
version: "3"
services:
gitlab-runner:
build: .
image: alpinelinux/gitlab-runner:latest-${ARCH}
image: alpinelinux/gitlab-runner:latest-${ALPINE_ARCH}
restart: always
volumes:
- /srv/docker/gitlab-runner-${ARCH}/conf:/etc/gitlab-runner
- ./profiles:/data/profiles
- /srv/docker/gitlab-runner-${ALPINE_ARCH}/conf:/etc/gitlab-runner
- /var/run/docker.sock:/var/run/docker.sock
environment:
- GITLAB_REGISTRATION_TOKEN_SHARED
- GITLAB_REGISTRATION_TOKEN_DOCKER
- ARCH
- ALPINE_ARCH
GITLAB_REGISTRATION_TOKEN_SHARED=<token>
GITLAB_REGISTRATION_TOKEN_DOCKER=<token>
ARCH=<arch>
GITLAB_REGISTRATION_TOKEN_SHARED=
GITLAB_REGISTRATION_TOKEN_DOCKER=
ALPINE_ARCH=
RUNNER_NAME="image-builder ($ALPINE_ARCH)"
REGISTRATION_TOKEN=$GITLAB_REGISTRATION_TOKEN_DOCKER
RUNNER_TAG_LIST=docker-alpine,ci-docker-image,$ALPINE_ARCH
RUNNER_LIMIT=1
DOCKER_VOLUMES=/var/run/docker.sock:/var/run/docker.sock
RUNNER_NAME="shared-runner ($ALPINE_ARCH)"
REGISTRATION_TOKEN=$GITLAB_REGISTRATION_TOKEN_SHARED
RUNNER_TAG_LIST=docker-alpine,ci-build,$ALPINE_ARCH
RUNNER_LIMIT=2
RUNNER_OUTPUT_LIMIT=102400
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment