Strip on tilde for kitmaker version

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2023-03-06 16:09:43 +02:00
parent c37209cd09
commit d944f934d7

View File

@ -193,9 +193,9 @@ function upload_archive() {
} }
component="nvidia_container_toolkit" component="nvidia_container_toolkit"
version="${VERSION%-rc.*}" version="${VERSION%~rc.*}"
version_suffix=$(date -r "${IMAGE_EPOCH}" '+%Y.%m.%d.%s' || date -d @"${IMAGE_EPOCH}" '+%Y.%m.%d.%s') version_suffix=$(date -r "${IMAGE_EPOCH}" '+%Y.%m.%d.%s' || date -d @"${IMAGE_EPOCH}" '+%Y.%m.%d.%s')
kitmaker_version="${VERSION%-rc.*}.${version_suffix}" kitmaker_version="${VERSION%~rc.*}.${version_suffix}"
kitmaker_os="linux" kitmaker_os="linux"
# create_and_upload creates a kitmaker archive for the specified component, os, and arch and uploads it. # create_and_upload creates a kitmaker archive for the specified component, os, and arch and uploads it.