harbor/tests/robot-cases/Group3-Upgrade/util.py
danfengliu f0ebd17994 Add build base image step in build package git action workflow
Build base image step should be in build package workflow, and local base images build by new step should be removed since images have been pushed to docker hub.

Signed-off-by: danfengliu <danfengl@vmware.com>
2021-04-17 18:10:44 +08:00

6 lines
186 B
Python

from hurry.filesize import size
from hurry.filesize import alternative
def convert_int_to_readable_file_size(file_size):
return size(file_size, system=alternative).replace(' ', '')