From d464ce26c506c4b8a6c042291b2aa19f586021ca Mon Sep 17 00:00:00 2001 From: disaster Date: Tue, 18 Apr 2017 09:35:47 +0000 Subject: [PATCH] Try to fix gocd --- templates/gocd/0/docker-compose.yml.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/gocd/0/docker-compose.yml.tpl b/templates/gocd/0/docker-compose.yml.tpl index dde8ba5..03e832a 100644 --- a/templates/gocd/0/docker-compose.yml.tpl +++ b/templates/gocd/0/docker-compose.yml.tpl @@ -5,7 +5,7 @@ services: tty: true image: webcenter/alpine-gocd-server:17.3.0-1 volumes: - {{- if hasPrefix .Values.VOLUME_DRIVER_SERVER "\/" }} + {{- if eq (substr .Values.VOLUME_DRIVER_SERVER 0 1) "/" }} - ${VOLUME_DRIVER_SERVER}:/data {{- else}} - gocd-server-data:/data @@ -114,12 +114,12 @@ volumes: gocd-scheduler-setting: driver: local per_container: true - {{- if not (contains .Values.VOLUME_DRIVER_AGENT "/")}} + {{- if ne (substr .Values.VOLUME_DRIVER_AGENT 0 1) "/"}} gocd-agent-data: driver: ${VOLUME_DRIVER_AGENT} per_container: true {{- end}} - {{- if not (contains .Values.VOLUME_DRIVER_SERVER "/")}} + {{- if ne (substr .Values.VOLUME_DRIVER_SERVER 0 1) "/"}} gocd-server-data: driver: ${VOLUME_DRIVER_SERVER} {{- end}}