Sign inSign up

idocking/gitlab-runner-golang

By idocking

•Updated over 8 years ago

The gitlab ci runner for go build, and also support docker in docker

Image
0

1.1K

idocking/gitlab-runner-golang repository overview

⁠GitLab CI Runner For GO

⁠Build
make alpine
⁠Run

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]

⁠Docker in Docker
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

Tag summary

Content type

Image

Digest

Size

187.5 MB

Last updated

over 8 years ago

docker pull idocking/gitlab-runner-golang