Verified Commit a5f6fc25 authored by Sven-Hendrik Haase's avatar Sven-Hendrik Haase
Browse files

Add size metric report

See also https://docs.gitlab.com/ee/ci/metrics_reports.html
parent ad876940
Pipeline #1841 passed with stages
in 26 minutes and 38 seconds
......@@ -29,6 +29,13 @@ shfmt:
- . build.env
- ./build-in-qemu.sh
- mv build.env output/
after_script:
- echo "image_size_megabytes{image=\"qcow2\"} $(du -m output/*cloudimg*qcow2)" > metrics.txt
- echo "image_size_megabytes{image=\"libvirt\"} $(du -m output/*libvirt*box)" >> metrics.txt
- echo "image_size_megabytes{image=\"virtualbox\"} $(du -m output/*virtualbox*box)" >> metrics.txt
artifacts:
reports:
metrics: metrics.txt
build:
extends: .build
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment