1
0
Fork 0
mirror of https://git.sr.ht/~goorzhel/turboprop synced 2024-12-14 11:37:37 +00:00

Add script to get hashes of upgraded charts

This commit is contained in:
Antonio Gurgel 2023-11-23 18:51:58 -08:00
parent 4c842b1883
commit 95318e84c1

11
bin/hash_changed_charts Executable file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
system=$(nix eval --impure --raw --expr 'builtins.currentSystem')
git status --short \
| grep -o 'charts/.*' \
| sed 's|/default.nix||;s|/|.|g' \
| xargs -I CHART nix build ".#packages.${system}.CHART"
# TODO: Do this automatically. But then I'll be repeating farcaller's work,
# and he's already working on a new version of nixhelm's updater.