diff --git a/scripts/check_dev_deploy_status.sh b/scripts/check_dev_deploy_status.sh index c2a2d0b808..d2c9bd4042 100644 --- a/scripts/check_dev_deploy_status.sh +++ b/scripts/check_dev_deploy_status.sh @@ -18,9 +18,9 @@ STATUS=$(docker inspect --format '{{.State.Status}}' $CONTAINER_ID) if [ "$STATUS" != "running" ]; then echo "Container $CONTAINER_ID is not running,trying to clean data and restart" echo "Start cleaning the data." - docker run --rm -v /root:/root ghcr.io/rooch-network/rooch:$IMAGE_TAG server clean -n dev + docker run --rm -v /root:/root ghcr.io/rooch-network/rooch:$(echo $IMAGE_TAG) server clean -n dev rm -rf ~/.rooch - docker run --rm -v /root:/root ghcr.io/rooch-network/rooch:$IMAGE_TAG init -m "$(echo $DEV_MNEMONIC_PHRASE)" --skip-password + docker run --rm -v /root:/root ghcr.io/rooch-network/rooch:$(echo $IMAGE_TAG) init -m "$(echo $DEV_MNEMONIC_PHRASE)" --skip-password docker start $CONTAINER_ID if [ $? -eq 0 ]; then echo "Container $CONTAINER_ID Successfully restarted." @@ -29,8 +29,8 @@ if [ "$STATUS" != "running" ]; then dir=${dir%*/} name_addr=$(basename $dir) echo $name_addr - docker run --rm -v /root:/root ghcr.io/rooch-network/rooch:$IMAGE_TAG move build -p "$dir" --named-addresses rooch_examples=default,$name_addr=default - docker run --rm -v /root:/root ghcr.io/rooch-network/rooch:$IMAGE_TAG move publish -p "$dir" --named-addresses rooch_examples=default,$name_addr=default + docker run --rm -v /root:/root ghcr.io/rooch-network/rooch:$(echo $IMAGE_TAG) move build -p "$dir" --named-addresses rooch_examples=default,$name_addr=default + docker run --rm -v /root:/root ghcr.io/rooch-network/rooch:$(echo $IMAGE_TAG) move publish -p "$dir" --named-addresses rooch_examples=default,$name_addr=default done else echo "Container $CONTAINER_ID Startup failed, please check the reason."