Skip to content

Commit

Permalink
Added an optional setting to make some extra variables have all-lower… (
Browse files Browse the repository at this point in the history
#63)

* Added an optional setting to make some extra variables have all-lowercase values.
  • Loading branch information
ken-roberts authored Feb 9, 2023
1 parent 74d2240 commit 8ba4402
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions bin/init_env
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion version.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8ba4402

Please sign in to comment.