From 8ba4402573310c6b5f874ee54705edec496ee499 Mon Sep 17 00:00:00 2001 From: Ken Roberts Date: Thu, 9 Feb 2023 11:55:56 -0600 Subject: [PATCH] =?UTF-8?q?Added=20an=20optional=20setting=20to=20make=20s?= =?UTF-8?q?ome=20extra=20variables=20have=20all-lower=E2=80=A6=20(#63)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Added an optional setting to make some extra variables have all-lowercase values. --- bin/init_env | 12 ++++++++---- version.properties | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/bin/init_env b/bin/init_env index 87b9d8f..76e1926 100755 --- a/bin/init_env +++ b/bin/init_env @@ -161,10 +161,14 @@ function init_from_build_yml { # and lowercase APP_KEY some of the values function make_some_vals_lowercase { set +u - [ "$APP_KEY" ] && APP_KEY=$(tolower "${APP_KEY}") - [ "$APP_DOCKER_URL" ] && APP_DOCKER_URL=$(tolower "$APP_DOCKER_URL") - [ "$APP_KUBE_INGRESS_URL" ] && APP_KUBE_INGRESS_URL=$(tolower "$APP_KUBE_INGRESS_URL") - [ "$APP_KUBE_DB_SERVICE_NAME" ] && APP_KUBE_DB_SERVICE_NAME=$(tolower "$APP_KUBE_DB_SERVICE_NAME") + for k in APP_KEY APP_DOCKER_URL APP_KUBE_INGRESS_URL APP_KUBE_DB_SERVICE_NAME; do + [ "${!k}" ] && eval "$k=$(tolower "${!k}")" + done + if [ "$SHIPKIT_VARS_VALS_LOWERCASE" ];then + for k in $SHIPKIT_VARS_VALS_LOWERCASE; do + [ "${!k}" ] && eval "$k=$(tolower "${!k}")" + done + fi set -u } diff --git a/version.properties b/version.properties index 700e117..e1f1dc8 100644 --- a/version.properties +++ b/version.properties @@ -8,4 +8,4 @@ publishedVersion=2.0.13 # when this is false will append -SNAPSHOT to version and if on publishable branch will 'publish' to snapshotUrl # when true IS_RELEASEBALE will be set and will go through full release process cycle to # automatically bump version and push a v tag to github -release=false +release=true