Merge remote-tracking branch 'origin/feature/ui-build-version-messages' into bugfix/ui-release-version

pull/4286/head
Matt Keeler 7 years ago
commit d6bc5bc2db

@ -67,7 +67,7 @@ function build_ui {
# make sure we run within the ui dir
pushd ${ui_dir} > /dev/null
status "Creating the UI Build Container with image: ${image_name}"
status "Creating the UI Build Container with image: ${image_name} and embedding as version ${version}"
local container_id=$(docker create -it -e "CONSUL_GIT_SHA=${commit_hash}" -e "CONSUL_VERSION=${version}" ${image_name})
local ret=$?
if test $ret -eq 0
@ -86,6 +86,7 @@ function build_ui {
if test ${ret} -eq 0
then
rm -rf ${1}/pkg/web_ui/v2
mkdir -p ${1}/pkg/web_ui
cp -r ${1}/ui-v2/dist ${1}/pkg/web_ui/v2
fi
popd > /dev/null

@ -128,6 +128,7 @@ function main {
fi
status_stage "==> Building UI"
build_ui "${sdir}" "${image}" || return 1
status_stage "==> UI V2 Built with embedded version: $(cat ${sdir}/pkg/web_ui/v2/index.html | sed -n -e 's/.*CONSUL_VERSION%22%3A%22//p' | sed -n -e 's/%22%2C%22.*//p')"
;;
ui-legacy )
if is_set "${refresh}"
@ -149,4 +150,4 @@ function main {
}
main "$@"
exit $?
exit $?

Loading…
Cancel
Save