The gitlab ci runner for go build, and also support docker in docker
1.1K
make alpine
docker-compose.yml
gitlab-runner:
image: 'idocking/gitlab-runner-golang:1.9.4-alpine3.6'
restart: always
environment:
- CI_SERVER_URL=http://gitlab.domain.com
- REGISTRATION_TOKEN=TOKEN
- RUNNER_TAG_LIST='golang,asdf'
- RUNNER_EXECUTOR=shell
- REGISTER_LOCKED=true
- REGISTER_RUN_UNTAGGED=false
if you want register other runner executor, you could execute gitlab-runner register --help and find the env key just like [$RUNNER_NAME]
gitlab-runner:
image: 'idocking/gitlab-runner-golang:1.9.4-alpine3.6'
restart: always
links:
- docker
environment:
- CI_SERVER_URL=http://gitlab.domain.com
- REGISTRATION_TOKEN=TOKEN
- RUNNER_TAG_LIST='golang,asdf'
- RUNNER_EXECUTOR=shell
- REGISTER_LOCKED=true
- REGISTER_RUN_UNTAGGED=false
- DOCKER_HOST=tcp://docker:2375
docker:
image: docker:stable-dind
privileged: true
Content type
Image
Digest
Size
187.5 MB
Last updated
over 8 years ago
docker pull idocking/gitlab-runner-golang