mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-06 06:51:34 +01:00
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(' ', '')
|