Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

recovery dev addr and mannual deploy examples #1006

Merged
merged 1 commit into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/deploy_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Deploy Examples To Rooch Network

on:
workflow_dispatch:
push:
paths:
- 'examples/**'


jobs:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ jobs:
PRIVATE_KEY: ${{ secrets.GCP_SSH_PRIVATE_KEY }}
HOST: ${{ secrets.GCP_VM_HOST }}
USER: ${{ secrets.GCP_VM_USER }}
DEV_MNEMONIC_PHRASE: ${{secrets.DEV_MNEMONIC_PHRASE}}
run: |
echo "$PRIVATE_KEY" > private_key.pem
chmod 600 private_key.pem
Expand Down
3 changes: 2 additions & 1 deletion scripts/check_dev_deploy_status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ if [ "$STATUS" != "running" ]; then
echo "Container $CONTAINER_ID is not running,trying to clean data and restart"
echo "Start cleaning the data."
rooch server clean -n dev
# TODO rooch init with phrase
rm -rf ~/.rooch
rooch init -m "$DEV_MNEMONIC_PHRASE"
docker start $CONTAINER_ID
if [ $? -eq 0 ]; then
echo "Container $CONTAINER_ID Successfully restarted."
Expand Down