mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-09 20:21:53 +01:00
f0ebd17994
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>
6 lines
186 B
Python
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(' ', '')
|