From 97f510df81c5eb45c607b826ec6fcf5df007f8fe Mon Sep 17 00:00:00 2001 From: nl6720 Date: Sat, 6 Feb 2021 10:49:55 +0200 Subject: [PATCH] .gitlab-ci.yml: use correct units for image size description `du --block-size=MiB` (and `du -m`) returns mebibytes not megabytes. Additionally, shorten the du command. `du --block-size=MiB` is the same as `du -m`. --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a768c0f..4373f41 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,7 +23,7 @@ shellcheck: script: - ./.gitlab/ci/build-host.sh after_script: - - echo "image_size_megabytes{image=\"${PROFILE}\"} $(du --block-size=MiB -- output/${PROFILE}/*iso)" > metrics.txt + - echo "image_size_mebibytes{image=\"${PROFILE}\"} $(du -m output/${PROFILE}/*iso)" > metrics.txt parallel: matrix: - PROFILE: [baseline, releng]