ISO/.gitlab-ci.yml
nl6720 97f510df81
.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`.
2021-02-06 15:35:55 +02:00

55 lines
900 B
YAML

---
#
# SPDX-License-Identifier: GPL-3.0-or-later
default:
image: "archlinux:latest"
stages:
- lint
- build
shellcheck:
stage: lint
before_script:
- pacman --noconfirm -Syu --needed make shellcheck
script:
- make lint
.build:
stage: build
before_script:
- pacman -Syu --needed --noconfirm qemu-headless libisoburn
script:
- ./.gitlab/ci/build-host.sh
after_script:
- echo "image_size_mebibytes{image=\"${PROFILE}\"} $(du -m output/${PROFILE}/*iso)" > metrics.txt
parallel:
matrix:
- PROFILE: [baseline, releng]
artifacts:
name: "output"
paths:
- "output/*/*"
expire_in: 2d
reports:
metrics: metrics.txt
build:
extends: .build
tags:
- fast-single-thread
except:
- master
- schedules
- tags
build:secure:
extends: .build
tags:
- secure
only:
- master
- schedules
- tags