-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
34 additions
and
8 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
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
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
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,27 @@ | ||
#!/bin/bash | ||
|
||
# Usage: ./run.sh [DEPLOY_REPORT_DIR] | ||
# DEPLOY_REPORT_DIR: Optional. The directory where the deploy-report.json file will be saved. Defaults to the current directory. | ||
|
||
# Run Apstark | ||
kurtosis run --enclave apstark-v1 --args-file params.yml . | ||
|
||
# Check if the command was successful | ||
if [ $? -eq 0 ]; then | ||
echo "Running Apstark successfully." | ||
|
||
# Get jayce deploy output | ||
if yq .deploy_contracts params.yml | grep -q 'true'; then | ||
DEPLOY_REPORT_DIR="${1:-.}" | ||
|
||
kurtosis files download apstark-v1 deploy-report.json "$DEPLOY_REPORT_DIR" | ||
|
||
if [ $? -eq 0 ]; then | ||
echo "Jayce deploy output downloaded successfully." | ||
else | ||
echo "Failed to download jayce deploy output." | ||
fi | ||
fi | ||
else | ||
echo "Failed to run Apstark" | ||
fi |