.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`.
This commit is contained in:
nl6720 2021-02-06 10:49:55 +02:00
parent f0ef2f3caf
commit 97f510df81
No known key found for this signature in database
GPG Key ID: 5CE88535E188D369

View File

@ -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]