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