-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): split deploy scripts for testnet and mainnet
Refactor deployment workflows for distinct environments. Added separate scripts for testnet and mainnet deployments. Introduced a new constant for default max retry times in DAServerOpenDAActor.
- Loading branch information
Showing
5 changed files
with
32 additions
and
4 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,21 @@ | ||
#!/bin/bash | ||
# Copyright (c) RoochNetwork | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
REF="$1" | ||
BTC_MAIN_RPC_URL="$2" | ||
BTC_MAIN_RPC_PWD="$3" | ||
OPENDA_GCP_MAINNET_BUCKET="$4" | ||
OPENDA_GCP_MAINNET_CREDENTIAL="$5" | ||
|
||
sleep 30 | ||
docker image prune -a -f | ||
docker ps | grep rooch | awk '{print $1}' | xargs -r docker stop | ||
docker ps -a | grep rooch | awk '{print $1}' | xargs -r docker rm -f | ||
docker pull "ghcr.io/rooch-network/rooch:$REF" | ||
docker run -d --name rooch --restart unless-stopped -v /data:/root -p 6767:6767 -p 9184:9184 -e RUST_BACKTRACE=full "ghcr.io/rooch-network/rooch:$REF" \ | ||
server start -n main \ | ||
--btc-rpc-url "$BTC_MAIN_RPC_URL" \ | ||
--btc-rpc-username rooch-main \ | ||
--btc-rpc-password "$BTC_MAIN_RPC_PWD" \ | ||
--da "{\"internal-da-server\": {\"servers\": [{\"open-da\": {\"scheme\": \"gcs\", \"config\": {\"bucket\": \"$OPENDA_GCP_MAINNET_BUCKET\", \"credential\": \"$OPENDA_GCP_MAINNET_CREDENTIAL\"}}}]}}" |
File renamed without changes.