mirror of
https://github.com/status-im/consul.git
synced 2025-01-24 20:51:10 +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:
|
# Arguments:
|
||||||
# $1 - Path to the top level Consul source
|
# $1 - Path to the top level Consul source
|
||||||
# $2 - The docker image to run the build within (optional)
|
# $2 - The docker image to run the build within (optional)
|
||||||
|
# $3 - Version override
|
||||||
#
|
#
|
||||||
# Returns:
|
# Returns:
|
||||||
# 0 - success
|
# 0 - success
|
||||||
@ -52,6 +53,11 @@ function build_ui {
|
|||||||
# parse the version
|
# parse the version
|
||||||
version=$(parse_version "${sdir}")
|
version=$(parse_version "${sdir}")
|
||||||
|
|
||||||
|
if test -n "$3"
|
||||||
|
then
|
||||||
|
version="$3"
|
||||||
|
fi
|
||||||
|
|
||||||
local commit_hash="${GIT_COMMIT}"
|
local commit_hash="${GIT_COMMIT}"
|
||||||
if test -z "${commit_hash}"
|
if test -z "${commit_hash}"
|
||||||
then
|
then
|
||||||
|
@ -448,7 +448,8 @@ function build_release {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
status_stage "==> Building UI for version ${vers}"
|
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
|
if test $? -ne 0
|
||||||
then
|
then
|
||||||
err "ERROR: Failed to build the ui"
|
err "ERROR: Failed to build the ui"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user