mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 13:26:07 +00:00
Make sure the release builds for the UI version to be consistent with the binary version.
This commit is contained in:
parent
714ef5e43e
commit
f32308b574
@ -26,6 +26,7 @@ function build_ui {
|
||||
# Arguments:
|
||||
# $1 - Path to the top level Consul source
|
||||
# $2 - The docker image to run the build within (optional)
|
||||
# $3 - Version override
|
||||
#
|
||||
# Returns:
|
||||
# 0 - success
|
||||
@ -52,6 +53,11 @@ function build_ui {
|
||||
# parse the version
|
||||
version=$(parse_version "${sdir}")
|
||||
|
||||
if test -n "$3"
|
||||
then
|
||||
version="$3"
|
||||
fi
|
||||
|
||||
local commit_hash="${GIT_COMMIT}"
|
||||
if test -z "${commit_hash}"
|
||||
then
|
||||
|
@ -448,7 +448,8 @@ function build_release {
|
||||
fi
|
||||
|
||||
status_stage "==> Building UI for version ${vers}"
|
||||
build_ui "${sdir}" "${UI_BUILD_TAG}"
|
||||
# passing the version to override the version determined via tags
|
||||
build_ui "${sdir}" "${UI_BUILD_TAG}" "${vers}"
|
||||
if test $? -ne 0
|
||||
then
|
||||
err "ERROR: Failed to build the ui"
|
||||
|
Loading…
x
Reference in New Issue
Block a user