From 0a54be69cdd92700cf51d9fb3ef6f480b4fb8f2f Mon Sep 17 00:00:00 2001 From: Helder Oliveira Date: Tue, 28 Nov 2023 16:10:36 +0000 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20add=20install=20and=20b?= =?UTF-8?q?uilds=20steps=20to=20update=20script?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/update | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/scripts/update b/scripts/update index 4c0840d..e5f95d1 100755 --- a/scripts/update +++ b/scripts/update @@ -22,6 +22,20 @@ git clean -f echo "[INFO] Current commit" git show --oneline -s +echo "[INFO] Update packages" +if ! npm install; then + echo "👹 Oops! Failed to npm install" + + exit 1 +fi + +echo "[INFO] Build" +if ! npm run build; then + echo "👹 Oops! Failed to build" + + exit 1 +fi + if ! docker compose ps --format "{{.Service}} {{.State}}" | grep 'llm_indexer running' || ! docker compose ps --format "{{.Service}} {{.State}}" | grep 'discordjs-bot'; then echo "⚠️ Warrning: Docker compose stack is down" echo "🤖 Should start compose stack, be patient..."