-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: script for deploying the spartan network
- Loading branch information
1 parent
375c017
commit cf5dd6b
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |