prometheus/scripts/package_assets.sh
Julien Pivotto 344b272b3e
Fix assets tarball (#10548)
The tarball should be compressed and only use uncompressed assets. In
that way, uit can be used by downstream distros easily. they can either
download the assets and serve it as is or use the compress script to
have it in the binary.

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2022-04-08 00:23:15 +02:00

9 lines
156 B
Bash
Executable file

#!/usr/bin/env bash
#
# compress static assets
set -euo pipefail
cd web/ui
find static -type f -not -name '*.gz' -print0 | xargs -0 tar czf static.tar.gz