Skip to content

Commit

Permalink
recovery dev addr and mannual deploy examples (#1006)
Browse files Browse the repository at this point in the history
  • Loading branch information
yourmoonlight authored Oct 19, 2023
1 parent 4346ced commit 7fd6418
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
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

0 comments on commit 7fd6418

Please sign in to comment.