README.md 1.04 KB
Newer Older
Kevin Daudt's avatar
Kevin Daudt committed
1 2
# gitlab-runner docker image

3 4
[![pipeline status](https://gitlab.alpinelinux.org/alpine/infra/docker/gitlab-runner/badges/master/pipeline.svg)](https://gitlab.alpinelinux.org/alpine/infra/docker/gitlab-runner/commits/master)

Kevin Daudt's avatar
Kevin Daudt committed
5 6
This will create a docker image for running a gitlab runner on Alpine Linux on
all the architectures that Alpine Linux supports.
7 8 9

## Starting the runner

10
There is a `docker-compose.yml` file included that starts up the runner. The
11 12 13
registration of the runner will be done automatically, but you need to provide a
`.env` file with some parameters. There is an `example.env` file that you can use
as a template.
14

15 16 17 18 19
* `GITLAB_REGISTRATION_TOKEN_SHARED` - The gitlab registration token (you can
  find it in the admin pannel under runners)
* `GITLAB_REGISTRATION_TOKEN_DOCKER` - The gitlab registration token for the
  dedicated docker image runner. This token should come from a project or group.
* `ARCH`  - The architecture for this runner (used as a description and tag).
20

21
Then run `docker-compose up -d` and the runner should be running.