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

docker-compose: modernize

No longer try to build a local image, rename ARCH to ALPINE_ARCH to
distinguish it from the way Docker calls the architectures.
parent 231a2dc2
......@@ -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
- /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=
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