From b00f4640df97728cbf446539ad570575084bbe6d Mon Sep 17 00:00:00 2001 From: Aaron Fiore Date: Thu, 11 Jul 2024 19:11:35 -0700 Subject: [PATCH] client: lib_docker: add build platform to `version type=short` --- client/src/docker/lib/internal/lib_docker.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/docker/lib/internal/lib_docker.bash b/client/src/docker/lib/internal/lib_docker.bash index a868b75..6ec1559 100644 --- a/client/src/docker/lib/internal/lib_docker.bash +++ b/client/src/docker/lib/internal/lib_docker.bash @@ -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" ;; *)