.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:
parent
f0ef2f3caf
commit
97f510df81
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user