From 1167bb82b5bdf48920436e78f349ca0913dbbead Mon Sep 17 00:00:00 2001 From: yourmoonlight Date: Sat, 28 Oct 2023 23:12:26 +0800 Subject: [PATCH 1/2] fix --- .github/workflows/docker_build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker_build.yml b/.github/workflows/docker_build.yml index 3697b927d4..9e7f9e728f 100644 --- a/.github/workflows/docker_build.yml +++ b/.github/workflows/docker_build.yml @@ -50,4 +50,4 @@ jobs: echo "$PRIVATE_KEY" > private_key.pem chmod 600 private_key.pem ssh -o StrictHostKeyChecking=no -i private_key.pem $USER@$HOST bash -c "'sleep 30' && 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:${{ steps.docker_meta.outputs.version }}' && docker run -d -v /root:/root -p 50051:50051 'ghcr.io/rooch-network/rooch:${{ steps.docker_meta.outputs.version }}' server start -n dev --eth-rpc-url https://goerli.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161" - ssh -o StrictHostKeyChecking=no -i private_key.pem $USER@$HOST "cd /root/rooch && git pull origin main && bash scripts/check_dev_deploy_status.sh ${{ steps.docker_meta.outputs.version }} ${{ secrets.DEV_MNEMONIC_PHRASE }}" \ No newline at end of file + ssh -o StrictHostKeyChecking=no -i private_key.pem $USER@$HOST "cd /root/rooch && git pull origin main && bash scripts/check_dev_deploy_status.sh ${{ steps.docker_meta.outputs.version }} '${{ secrets.DEV_MNEMONIC_PHRASE }}'" \ No newline at end of file From 738ed024826045a35d69ae731b4f5983ef2d6f34 Mon Sep 17 00:00:00 2001 From: yourmoonlight Date: Sat, 28 Oct 2023 23:44:22 +0800 Subject: [PATCH 2/2] add test mark --- scripts/check_dev_deploy_status.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check_dev_deploy_status.sh b/scripts/check_dev_deploy_status.sh index a05fa608ce..f0bff56070 100644 --- a/scripts/check_dev_deploy_status.sh +++ b/scripts/check_dev_deploy_status.sh @@ -25,7 +25,7 @@ sleep 30 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 "!!! Container $CONTAINER_ID is not running, trying to clean data and restart" echo "Start cleaning the data with image_tag: $IMAGE_TAG" docker run --rm -v "/root:/root" ghcr.io/rooch-network/rooch:$IMAGE_TAG server clean -n dev rm -rf ~/.rooch