From e69fa37142d97a1899f6067587993f031f2c2763 Mon Sep 17 00:00:00 2001 From: disaster Date: Tue, 18 Apr 2017 09:47:02 +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 03e832a..eb00cfc 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 eq (substr .Values.VOLUME_DRIVER_SERVER 0 1) "/" }} + {{- if hasPrefix string(.Values.VOLUME_DRIVER_SERVER) "/" }} - ${VOLUME_DRIVER_SERVER}:/data {{- else}} - gocd-server-data:/data @@ -114,12 +114,12 @@ volumes: gocd-scheduler-setting: driver: local per_container: true - {{- if ne (substr .Values.VOLUME_DRIVER_AGENT 0 1) "/"}} + {{- if not (contains .Values.VOLUME_DRIVER_AGENT "/")}} gocd-agent-data: driver: ${VOLUME_DRIVER_AGENT} per_container: true {{- end}} - {{- if ne (substr .Values.VOLUME_DRIVER_SERVER 0 1) "/"}} + {{- if not (contains .Values.VOLUME_DRIVER_SERVER "/")}} gocd-server-data: driver: ${VOLUME_DRIVER_SERVER} {{- end}}