From 5e35b988c18ec887c1fd5269600a183b62a34aa9 Mon Sep 17 00:00:00 2001 From: disaster37 Date: Fri, 7 Apr 2017 15:02:43 +0000 Subject: [PATCH] Fix publish port on template --- templates/gocd/0/docker-compose.yml.tpl | 4 ++-- templates/gocd/0/rancher-compose.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/gocd/0/docker-compose.yml.tpl b/templates/gocd/0/docker-compose.yml.tpl index 563b679..e715f0a 100644 --- a/templates/gocd/0/docker-compose.yml.tpl +++ b/templates/gocd/0/docker-compose.yml.tpl @@ -36,7 +36,7 @@ services: - GOCD_PLUGIN_google-auth=https://github.com/gocd-contrib/gocd-oauth-login/releases/download/v2.3/google-oauth-login-2.3.jar - GOCD_PLUGIN_github-auth=https://github.com/gocd-contrib/gocd-oauth-login/releases/download/v2.3/github-oauth-login-2.3.jar {{- end}} - {{- if (ne .Values.DEPLOY_LB "true") and .Values.PUBLISH_PORT and (ne .Values.PUBLISH_PORT "")}} + {{- if (ne .Values.DEPLOY_LB "true") and (ne .Values.PUBLISH_PORT "false")}} ports: - ${PUBLISH_PORT}:8153 {{- end}} @@ -46,7 +46,7 @@ services: {{- if eq .Values.DEPLOY_LB "true"}} lb: image: rancher/lb-service-haproxy:v0.6.2 - {{- if .Values.PUBLISH_PORT and (ne .Values.PUBLISH_PORT "")}} + {{- if (ne .Values.PUBLISH_PORT "false")}} ports: - ${PUBLISH_PORT}:8153/tcp {{- else}} diff --git a/templates/gocd/0/rancher-compose.yml b/templates/gocd/0/rancher-compose.yml index 11e6bb6..30579ae 100644 --- a/templates/gocd/0/rancher-compose.yml +++ b/templates/gocd/0/rancher-compose.yml @@ -93,7 +93,7 @@ catalog: - "true" - "false" - variable: "PUBLISH_PORT" - description: "Set port if you want publish external port for GoCD server or Loadbalancer" + description: "Set port if you want publish external port for GoCD server or Loadbalancer. Else set 'false'" label: "Publish port" required: false type: "string"