Skip to content

Commit

Permalink
fix deploy workflow (#1051)
Browse files Browse the repository at this point in the history
  • Loading branch information
yourmoonlight authored Oct 27, 2023
1 parent 53b981a commit 098e369
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/check_dev_deploy_status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 -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:$IMAGE_TAG server clean -n dev
rm -rf ~/.rooch
docker run -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:$IMAGE_TAG init -m "$(echo $DEV_MNEMONIC_PHRASE)" --skip-password
docker start $CONTAINER_ID
if [ $? -eq 0 ]; then
echo "Container $CONTAINER_ID Successfully restarted."
Expand All @@ -29,8 +29,8 @@ if [ "$STATUS" != "running" ]; then
dir=${dir%*/}
name_addr=$(basename $dir)
echo $name_addr
docker run -v /root:/root ghcr.io/rooch-network/rooch:$IMAGE_TAG move build -p "$dir" --named-addresses rooch_examples=default,$name_addr=default
docker run -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:$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
done
else
echo "Container $CONTAINER_ID Startup failed, please check the reason."
Expand Down

0 comments on commit 098e369

Please sign in to comment.