2022-11-11 18:05:57 +00:00
|
|
|
---
|
2022-11-03 20:43:17 +00:00
|
|
|
stages:
|
2022-11-11 18:05:57 +00:00
|
|
|
# Garbage in is garbage out, so verify our input
|
|
|
|
- check input
|
2022-11-03 20:43:17 +00:00
|
|
|
- build
|
|
|
|
|
2022-11-03 20:54:38 +00:00
|
|
|
variables:
|
|
|
|
DEBIAN_FRONTEND: "noninteractive"
|
2022-11-03 20:55:32 +00:00
|
|
|
# At https://salsa.debian.org/salsa-ci-team/pipeline/container_registry one can see which images are available
|
|
|
|
SALSA_CI_IMAGES: registry.salsa.debian.org/salsa-ci-team/pipeline
|
|
|
|
BASE_CI_IMAGES: ${SALSA_CI_IMAGES}/base
|
2022-11-03 20:54:38 +00:00
|
|
|
|
2022-11-11 22:51:17 +00:00
|
|
|
yamllint:
|
2022-11-11 18:05:57 +00:00
|
|
|
stage: check input
|
|
|
|
image: $BASE_CI_IMAGES:unstable
|
|
|
|
dependencies: []
|
|
|
|
script:
|
|
|
|
- apt-get update && apt-get upgrade -y
|
|
|
|
- apt-get install -y yamllint
|
|
|
|
- yamllint -c debian/yamllint.yml .
|
|
|
|
|
2022-11-11 22:51:17 +00:00
|
|
|
shellcheck:
|
|
|
|
stage: check input
|
|
|
|
image: $BASE_CI_IMAGES:unstable
|
|
|
|
dependencies: []
|
|
|
|
script:
|
|
|
|
- apt-get update && apt-get upgrade -y
|
|
|
|
- apt-get install -y shellcheck
|
2022-11-12 02:24:37 +00:00
|
|
|
- shellcheck -e SC1090,SC1091,SC2086 -s dash $(find rootfs/etc/initramfs-tools -type f -executable | xargs grep -l '^#!/bin/sh')
|
2022-11-11 22:51:17 +00:00
|
|
|
|
2022-11-11 18:05:57 +00:00
|
|
|
build yamls:
|
2022-11-03 20:54:38 +00:00
|
|
|
stage: build
|
2022-11-03 20:55:32 +00:00
|
|
|
image: $BASE_CI_IMAGES:unstable
|
2022-11-03 20:43:17 +00:00
|
|
|
dependencies: []
|
|
|
|
script:
|
2022-11-05 11:23:03 +00:00
|
|
|
- apt-get update && apt-get upgrade -y
|
2022-11-14 16:52:51 +00:00
|
|
|
- apt-get install -y python3 make git
|
2022-11-03 20:43:17 +00:00
|
|
|
- make yaml
|
|
|
|
- mkdir build
|
2022-11-05 11:23:03 +00:00
|
|
|
- cp raspi*.yaml build/
|
2022-11-03 20:43:17 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2022-11-05 11:23:03 +00:00
|
|
|
- build/
|