forked from EvergreenCrypto/docker-finance
client: lib_docker: add build platform to version type=short
This commit is contained in:
@@ -646,6 +646,7 @@ function lib_docker::__version()
|
||||
[ -z "${DOCKER_FINANCE_VERSION}" ] && lib_utils::die_fatal
|
||||
[ -z "${DOCKER_FINANCE_CLIENT_REPO}" ] && lib_utils::die_fatal
|
||||
|
||||
[ -z "$global_platform" ] && lib_utils::die_fatal
|
||||
[ -z "${global_arg_type[*]}" ] && lib_utils::die_fatal
|
||||
|
||||
for _type in "${global_arg_type[@]}"; do
|
||||
@@ -671,8 +672,6 @@ function lib_docker::__version()
|
||||
;;
|
||||
|
||||
container)
|
||||
[ -z "$global_platform" ] && lib_utils::die_fatal
|
||||
|
||||
# Feed dependency manifest (client is not bind-mounted for security reasons)
|
||||
local _manifest
|
||||
_manifest="$(<${DOCKER_FINANCE_CLIENT_REPO}/client/docker-finance.yaml)"
|
||||
@@ -723,8 +722,9 @@ function lib_docker::__version()
|
||||
lib_utils::die_fatal
|
||||
fi
|
||||
|
||||
# TODO: add build type
|
||||
echo
|
||||
echo -e "docker-finance v${DOCKER_FINANCE_VERSION} | commit: $_hash"
|
||||
echo -e "docker-finance v${DOCKER_FINANCE_VERSION} | commit: $_hash | build: $global_platform"
|
||||
;;
|
||||
|
||||
*)
|
||||
|
||||
Reference in New Issue
Block a user