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:
parent
4c842b1883
commit
95318e84c1
1 changed files with 11 additions and 0 deletions
11
bin/hash_changed_charts
Executable file
11
bin/hash_changed_charts
Executable 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.
|
Loading…
Reference in a new issue