mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-11-22 08:04:20 +01:00
Remove useless products
Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
parent
a412f91488
commit
323b628d95
17
flake.nix
17
flake.nix
|
@ -50,20 +50,6 @@
|
|||
|
||||
_config=$(basename $(find $_workdir -name '*.json' ! -name 'manifest.json' -type f))
|
||||
|
||||
ls $out/layers/ | jq -Rsc '{ layers: split("\n")[:-1] }' > $out/index.json
|
||||
|
||||
cat >> $out/index.html <<EOF
|
||||
<html>
|
||||
<body>
|
||||
<a href="manifest.json">manifest.json</a><br>
|
||||
<a href="$_config">config.json</a><br>
|
||||
EOF
|
||||
jq -r '.layers | join("\n")' < $out/index.json | xargs -I {} awk 'BEGIN { print "<a href=\"layers/{}\">{}</a><br>" }' >> $out/index.html
|
||||
cat >> $out/index.html <<EOF
|
||||
</body>
|
||||
</html>
|
||||
EOF
|
||||
|
||||
cp $_workdir/manifest.json $out/manifest.json
|
||||
cp $_workdir/$_config $out/$_config
|
||||
|
||||
|
@ -75,9 +61,6 @@
|
|||
file manifest $out/manifest.json
|
||||
file config $out/$_config
|
||||
|
||||
file html $out/layers/index.html
|
||||
file json $out/layers/index.json
|
||||
|
||||
file executable $out/stream
|
||||
EOF
|
||||
'' ;
|
||||
|
|
Loading…
Reference in a new issue