From 1186974715c58edc3317221bdd7bf6d510bceb59 Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Tue, 12 Apr 2022 19:23:02 +0200 Subject: [PATCH] Publish UI release artefact in our github releases (#10577) This will make UI static files part of the release artefacts, for consumption by downstream distributions. Signed-off-by: Julien Pivotto --- .circleci/config.yml | 6 ++++-- scripts/package_assets.sh | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c7f59df31..966c546f2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -63,8 +63,10 @@ jobs: - run: make ui-build-module - run: make ui-test - run: make assets-tarball -o assets - - store_artifacts: - path: web/ui/static.tar.gz + - persist_to_workspace: + root: . + paths: + - .tarballs - save_cache: key: v3-npm-deps-{{ checksum "web/ui/package-lock.json" }} paths: diff --git a/scripts/package_assets.sh b/scripts/package_assets.sh index a1f1571dd..038993851 100755 --- a/scripts/package_assets.sh +++ b/scripts/package_assets.sh @@ -4,5 +4,7 @@ set -euo pipefail +version="$(< VERSION)" +mkdir -p .tarballs cd web/ui -find static -type f -not -name '*.gz' -print0 | xargs -0 tar czf static.tar.gz +find static -type f -not -name '*.gz' -print0 | xargs -0 tar czf ../../.tarballs/prometheus-web-ui-${version}.tar.gz