Added ability to add extra hosts for the runners
This commit is contained in:
@@ -12,9 +12,6 @@ services:
|
||||
- ${GITLAB_TOKEN}
|
||||
- --executor
|
||||
- "docker"
|
||||
- --docker-image
|
||||
- docker:latest
|
||||
- --docker-privileged
|
||||
{{- if .Values.GITLAB_RUNNER_DESCRIPTION}}
|
||||
- --description
|
||||
- ${GITLAB_RUNNER_DESCRIPTION}
|
||||
@@ -24,6 +21,13 @@ services:
|
||||
- ${GITLAB_TAGS}
|
||||
{{- end}}
|
||||
- --locked=false
|
||||
- --docker-image
|
||||
- docker:latest
|
||||
- --docker-privileged
|
||||
{{- if .Values.GITLAB_IP}}
|
||||
- --docker-extra-hosts
|
||||
- ["gitlab:${GITLAB_IP}"]
|
||||
{{- end}}
|
||||
{{- if .Values.GITLAB_LINK}}
|
||||
external_links:
|
||||
- ${GITLAB_LINK}{{- if .Values.GITLAB_LINK_ALIAS}}:${GITLAB_LINK_ALIAS}{{- end}}
|
||||
|
||||
@@ -66,6 +66,14 @@ catalog:
|
||||
required: false
|
||||
type: string
|
||||
|
||||
- variable: "GITLAB_IP"
|
||||
label: "Local GitLab IP"
|
||||
description: |
|
||||
(Optional) The local IP address of the GitLab service.
|
||||
# default: ""
|
||||
required: false
|
||||
type: string
|
||||
|
||||
- variable: "DATA_DIR"
|
||||
label: "Data Directory"
|
||||
description: |
|
||||
|
||||
Reference in New Issue
Block a user