Loading templates/gitlab-ci-cf.yml +5 −3 Original line number Diff line number Diff line Loading @@ -494,9 +494,11 @@ stages: route=${route//((appname))/$app_target} route=${route//((hostname))/$hostname_target} # extract hostname and domain route_host=${route%%.*} route_domain=${route#*.} cf map-route "$app_tmp" "$route_domain" --hostname "$route_host" route_host=$(echo "$route" | cut -d '.' -f1) route_domain_and_path=$(echo "$route" | cut -d '.' -f2-) route_domain=$(echo "$route_domain_and_path" | cut -d '/' -f1) route_path=$(echo "$route_domain_and_path" | cut -d '/' -s -f2-) cf map-route "$app_tmp" "$route_domain" --hostname "$route_host" ${route_path:+--path "$route_path"} done else # map route from env Loading Loading
templates/gitlab-ci-cf.yml +5 −3 Original line number Diff line number Diff line Loading @@ -494,9 +494,11 @@ stages: route=${route//((appname))/$app_target} route=${route//((hostname))/$hostname_target} # extract hostname and domain route_host=${route%%.*} route_domain=${route#*.} cf map-route "$app_tmp" "$route_domain" --hostname "$route_host" route_host=$(echo "$route" | cut -d '.' -f1) route_domain_and_path=$(echo "$route" | cut -d '.' -f2-) route_domain=$(echo "$route_domain_and_path" | cut -d '/' -f1) route_path=$(echo "$route_domain_and_path" | cut -d '/' -s -f2-) cf map-route "$app_tmp" "$route_domain" --hostname "$route_host" ${route_path:+--path "$route_path"} done else # map route from env Loading