From bfdf4ddee0cba1927fa546f5f844aec6caefad2b Mon Sep 17 00:00:00 2001 From: prombot Date: Fri, 26 Nov 2021 00:01:50 +0000 Subject: [PATCH] Update common Prometheus files Signed-off-by: prombot --- Makefile.common | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile.common b/Makefile.common index bf7304e..36c9d9c 100644 --- a/Makefile.common +++ b/Makefile.common @@ -238,8 +238,11 @@ endif .PHONY: common-build common-build: promu - @echo ">> building binaries" - GO111MODULE=$(GO111MODULE) $(PROMU) build --prefix $(PREFIX) $(PROMU_BINARIES) + @bash -c "trap 'echo \">> restoring assets\"; scripts/compress_assets.sh -d;' EXIT; \ + echo '>> compressing assets'; \ + scripts/compress_assets.sh; \ + echo '>> building binaries'; \ + GO111MODULE=$(GO111MODULE) $(PROMU) build --prefix $(PREFIX) $(PROMU_BINARIES)" .PHONY: common-tarball common-tarball: promu