blob: ed4a7fa9d3c5b5bda3d9cc4e05a515f73524ce0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/usr/bin/env bash
set -euo pipefail
repo=/mnt/hermes-workspace/alt-controller-image-rs
printf 'Native image-builder heartbeat\n'
printf 'UTC: '; date -u '+%Y-%m-%dT%H:%M:%SZ'
printf 'HEAD: '; git -C "$repo" log -1 --format='%h %ad %s' --date=iso-strict
printf 'Worker: '
if pgrep -af 'hermes verify --json|alt-controller-image|hsh-install|hsh --initroot' >/dev/null; then
printf 'active\n'
else
printf 'idle between scheduled runs\n'
fi
printf 'Working tree: '
if test -n "$(git -C "$repo" status --porcelain)"; then
printf 'uncommitted changes present\n'
else
printf 'clean\n'
fi
|