client: lib_docker: add build platform to version type=short

This commit is contained in:
2024-07-11 19:11:35 -07:00
parent 85a9cd8018
commit b00f4640df

View File

@@ -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"
;;
*)