Skip to content

Commit

Permalink
add prometheus port to deploy workflow (#2199)
Browse files Browse the repository at this point in the history
  • Loading branch information
yourmoonlight authored Jul 16, 2024
1 parent 16b0ee7 commit 0a4a266
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@ jobs:
chmod 600 private_key.pem
sudo apt update
sudo apt install -y --no-install-recommends openssh-server
ssh -o StrictHostKeyChecking=no -i private_key.pem $USER@$HOST bash -c "'sleep 30' && docker image prune -a -f && docker ps | grep main_debug | awk '{print \$1}' | xargs -r docker stop && docker ps -a | grep main_debug | awk '{print \$1}' | xargs -r docker rm -f && docker pull 'ghcr.io/rooch-network/rooch:main_debug' && docker run --rm -v /root:/root ghcr.io/rooch-network/rooch:main_debug server clean -n dev -f && docker run -d -v /root:/root -p 6767:6767 'ghcr.io/rooch-network/rooch:main_debug' server start -n dev --btc-rpc-url '${{secrets.BTC_REGTEST_RPC_URL}}' --btc-rpc-username rooch-regtest --btc-rpc-password '${{secrets.BTC_REGTEST_RPC_PWD}}' --da '{\"internal-da-server\": {\"servers\": [{\"open-da\": {\"scheme\": \"fs\"}}]}}'"
ssh -o StrictHostKeyChecking=no -i private_key.pem $USER@$HOST bash -c "'sleep 30' && docker image prune -a -f && docker ps | grep main_debug | awk '{print \$1}' | xargs -r docker stop && docker ps -a | grep main_debug | awk '{print \$1}' | xargs -r docker rm -f && docker pull 'ghcr.io/rooch-network/rooch:main_debug' && docker run --rm -v /root:/root ghcr.io/rooch-network/rooch:main_debug server clean -n dev -f && docker run -d -v /root:/root -p 6767:6767 -p 9184:9184 'ghcr.io/rooch-network/rooch:main_debug' server start -n dev --btc-rpc-url '${{secrets.BTC_REGTEST_RPC_URL}}' --btc-rpc-username rooch-regtest --btc-rpc-password '${{secrets.BTC_REGTEST_RPC_PWD}}' --da '{\"internal-da-server\": {\"servers\": [{\"open-da\": {\"scheme\": \"fs\"}}]}}'"
ssh -o StrictHostKeyChecking=no -i private_key.pem $USER@$HOST "cd /root/rooch && git pull origin main && bash scripts/check_dev_deploy_status.sh main_debug '${{ secrets.TESTNET_MNEMONIC_PHRASE }}'"
2 changes: 1 addition & 1 deletion scripts/deploy_rooch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ docker image prune -a -f
docker ps | grep rooch | grep -v faucet | awk '{print \$1}' | xargs -r docker stop
docker ps -a | grep rooch | grep -v faucet | awk '{print \$1}' | xargs -r docker rm -f
docker pull "ghcr.io/rooch-network/rooch:\$REF"
docker run -d --name rooch --restart unless-stopped -v /data:/root -p 6767:6767 "ghcr.io/rooch-network/rooch:\$REF" \
docker run -d --name rooch --restart unless-stopped -v /data:/root -p 6767:6767 -p 9184:9184 "ghcr.io/rooch-network/rooch:\$REF" \
server start -n test \
--btc-rpc-url "\$BTC_TEST_RPC_URL" \
--btc-rpc-username rooch-test \
Expand Down

0 comments on commit 0a4a266

Please sign in to comment.