Skip to content

Commit

Permalink
chore: script for deploying the spartan network
Browse files Browse the repository at this point in the history
  • Loading branch information
just-mitch committed Oct 10, 2024
1 parent 375c017 commit cf5dd6b
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions spartan/scripts/deploy_spartan.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash
set -eu

TAG=$1
VALUES=$2

if [ -z "$TAG" ]; then
echo "Usage: $0 <tag> <values>"
echo "Example: $0 latest 48-validators"
exit 1
fi

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

helm upgrade --install spartan $SCRIPT_DIR/../aztec-network \
--namespace spartan \
--create-namespace \
--values $SCRIPT_DIR/../aztec-network/values/$VALUES.yaml \
--set images.aztec.image="aztecprotocol/aztec:$TAG" \
--set network.public=true \
--wait \
--wait-for-jobs=true \
--timeout=30m

0 comments on commit cf5dd6b

Please sign in to comment.