build: update bootstrap script

This commit is contained in:
Jon Seager 2026-02-02 15:58:05 +00:00
parent 74a8bef475
commit 7fc1d4db70
No known key found for this signature in database

View file

@ -1,7 +1,11 @@
#!/usr/bin/env bash
set -euo pipefail
cargo build
BREWLOG_TOKEN="$(./target/debug/brewlog create-token --name "bootstrap-token" --username admin --password password | grep -Po "BREWLOG_TOKEN=\K.+$")"
export BREWLOG_TOKEN
if [[ -z "$BREWLOG_TOKEN" ]]; then
echo "Error: BREWLOG_TOKEN environment variable is not set."
exit 1
@ -410,3 +414,7 @@ fi
--producer "Simbi Co-op" \
--process "Washed" \
--tasting-notes "Black Tea, Orange, Cane Sugar"
echo "Bootstrapped database"
echo
echo "Set token $BREWLOG_TOKEN to use the data added here."