Making things a bit more concise

This commit is contained in:
William Miceli
2019-07-31 21:28:20 -04:00
parent 5e7875691d
commit 1670df51ef

View File

@@ -6,30 +6,23 @@ services:
command: command:
- register - register
- --non-interactive - --non-interactive
- --url - --url ${GITLAB_URL}
- ${GITLAB_URL} - --registration-token ${GITLAB_TOKEN}
- --registration-token - --executor "docker"
- ${GITLAB_TOKEN}
- --executor
- "docker"
{{- if .Values.GITLAB_RUNNER_DESCRIPTION}} {{- if .Values.GITLAB_RUNNER_DESCRIPTION}}
- --description - --description ${GITLAB_RUNNER_DESCRIPTION}
- ${GITLAB_RUNNER_DESCRIPTION}
{{- end}} {{- end}}
{{- if .Values.GITLAB_TAGS}} {{- if .Values.GITLAB_TAGS}}
- --tag-list - --tag-list ${GITLAB_TAGS}
- ${GITLAB_TAGS}
{{- end}} {{- end}}
- --locked=false - --locked=false
- --docker-image - --docker-image
- docker:latest - docker:latest
- --docker-privileged - --docker-privileged
{{- if .Values.GITLAB_IP}} {{- if .Values.GITLAB_IP}}
- --docker-extra-hosts - --docker-extra-hosts "gitlab:${GITLAB_IP}"
- "gitlab:${GITLAB_IP}"
{{- end}} {{- end}}
- --docker-host - --docker-host "tcp://docker:2375/"
- "tcp://docker:2375/"
{{- if .Values.GITLAB_LINK}} {{- if .Values.GITLAB_LINK}}
external_links: external_links:
- ${GITLAB_LINK}:gitlab - ${GITLAB_LINK}:gitlab