Testing using environment variables instead
This commit is contained in:
@@ -5,25 +5,18 @@ services:
|
|||||||
image: gitlab/gitlab-runner:alpine # Alpine Linux image is designed to use only Docker as the method of spawning runners
|
image: gitlab/gitlab-runner:alpine # Alpine Linux image is designed to use only Docker as the method of spawning runners
|
||||||
command:
|
command:
|
||||||
- register
|
- register
|
||||||
- --non-interactive
|
environment:
|
||||||
- \"--url ${GITLAB_URL}\"
|
REGISTER_NON_INTERACTIVE: true
|
||||||
- --registration-token ${GITLAB_TOKEN}
|
CI_SERVER_URL: http://gitlab/
|
||||||
- --executor "docker"
|
REGISTRATION_TOKEN: ${GITLAB_TOKEN}
|
||||||
{{- if .Values.GITLAB_RUNNER_DESCRIPTION}}
|
RUNNER_EXECUTOR: docker
|
||||||
- --description ${GITLAB_RUNNER_DESCRIPTION}
|
RUNNER_NAME: ${GITLAB_RUNNER_DESCRIPTION}
|
||||||
{{- end}}
|
RUNNER_TAG_LIST: ${GITLAB_TAGS}
|
||||||
{{- if .Values.GITLAB_TAGS}}
|
REGISTER_LOCKED: false
|
||||||
- --tag-list ${GITLAB_TAGS}
|
DOCKER_IMAGE: docker:latest
|
||||||
{{- end}}
|
DOCKER_PRIVILEGED: true
|
||||||
- --locked=false
|
DOCKER_EXTRA_HOSTS: gitlab:${GITLAB_IP}
|
||||||
- --docker-image
|
DOCKER_HOST: tcp://docker:2375/
|
||||||
- docker:latest
|
|
||||||
- --docker-privileged
|
|
||||||
{{- if .Values.GITLAB_IP}}
|
|
||||||
- --docker-extra-hosts "gitlab:${GITLAB_IP}"
|
|
||||||
{{- end}}
|
|
||||||
- --docker-host "tcp://docker:2375/"
|
|
||||||
{{- if .Values.GITLAB_LINK}}
|
|
||||||
external_links:
|
external_links:
|
||||||
- ${GITLAB_LINK}:gitlab
|
- ${GITLAB_LINK}:gitlab
|
||||||
{{- end}}
|
{{- end}}
|
||||||
|
|||||||
Reference in New Issue
Block a user