Commit 2161277d authored by Kevin Daudt's avatar Kevin Daudt 💻

initial commit

parents
# gitlab-runner
docker-compose files for running a gitlab-runner used for running Alpine CI/CD
jobs
## Setup
Copy the `example.env` file to`.env` and fill in the values.
* `GITLAB_REGISTRATION_TOKEN_SHARED` - Gitlab CI/CD Shared runner token. This
runner can be used for any kind of CI/CD job.
* `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
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}
restart: always
volumes:
- /srv/docker/gitlab-runner-${ARCH}/conf:/etc/gitlab-runner
- /var/run/docker.sock:/var/run/docker.sock
environment:
- GITLAB_REGISTRATION_TOKEN_SHARED
- GITLAB_REGISTRATION_TOKEN_DOCKER
- ARCH
GITLAB_REGISTRATION_TOKEN_SHARED=<token>
GITLAB_REGISTRATION_TOKEN_DOCKER=<token>
ARCH=<arch>
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