Try to fix gocd
This commit is contained in:
parent
338fae87bc
commit
d464ce26c5
@ -5,7 +5,7 @@ services:
|
|||||||
tty: true
|
tty: true
|
||||||
image: webcenter/alpine-gocd-server:17.3.0-1
|
image: webcenter/alpine-gocd-server:17.3.0-1
|
||||||
volumes:
|
volumes:
|
||||||
{{- if hasPrefix .Values.VOLUME_DRIVER_SERVER "\/" }}
|
{{- if eq (substr .Values.VOLUME_DRIVER_SERVER 0 1) "/" }}
|
||||||
- ${VOLUME_DRIVER_SERVER}:/data
|
- ${VOLUME_DRIVER_SERVER}:/data
|
||||||
{{- else}}
|
{{- else}}
|
||||||
- gocd-server-data:/data
|
- gocd-server-data:/data
|
||||||
@ -114,12 +114,12 @@ volumes:
|
|||||||
gocd-scheduler-setting:
|
gocd-scheduler-setting:
|
||||||
driver: local
|
driver: local
|
||||||
per_container: true
|
per_container: true
|
||||||
{{- if not (contains .Values.VOLUME_DRIVER_AGENT "/")}}
|
{{- if ne (substr .Values.VOLUME_DRIVER_AGENT 0 1) "/"}}
|
||||||
gocd-agent-data:
|
gocd-agent-data:
|
||||||
driver: ${VOLUME_DRIVER_AGENT}
|
driver: ${VOLUME_DRIVER_AGENT}
|
||||||
per_container: true
|
per_container: true
|
||||||
{{- end}}
|
{{- end}}
|
||||||
{{- if not (contains .Values.VOLUME_DRIVER_SERVER "/")}}
|
{{- if ne (substr .Values.VOLUME_DRIVER_SERVER 0 1) "/"}}
|
||||||
gocd-server-data:
|
gocd-server-data:
|
||||||
driver: ${VOLUME_DRIVER_SERVER}
|
driver: ${VOLUME_DRIVER_SERVER}
|
||||||
{{- end}}
|
{{- end}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user