From 3e90834cf3dd6cc59e4b01c376a39bea61773b42 Mon Sep 17 00:00:00 2001 From: coincashew <62976495+coincashew@users.noreply.github.com> Date: Wed, 24 Jul 2024 00:19:14 -0700 Subject: [PATCH 1/7] Create lido-csm-staking-node.yml --- .github/workflows/main.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..9f8baf8 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,11 @@ +name: test_deployment_full_staking_node + +on: [push] + +jobs: + run-lido-csm-staking-node: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Deploy a Lido CSM Staking node, consisting of EL CL VC and mevboost + run: python3 ./deploy-nimbus-nethermind.py --skip_prompts="true" --network="HOLESKY" --install_config="Lido CSM Staking Node" From 2fee2dd26ffe6f41e38849ed28a30a701ead4cdf Mon Sep 17 00:00:00 2001 From: coincashew <62976495+coincashew@users.noreply.github.com> Date: Wed, 24 Jul 2024 00:24:22 -0700 Subject: [PATCH 2/7] Update and rename main.yml to dev.yml --- .github/workflows/{main.yml => dev.yml} | 2 ++ 1 file changed, 2 insertions(+) rename .github/workflows/{main.yml => dev.yml} (81%) diff --git a/.github/workflows/main.yml b/.github/workflows/dev.yml similarity index 81% rename from .github/workflows/main.yml rename to .github/workflows/dev.yml index 9f8baf8..ad74cad 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/dev.yml @@ -7,5 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - name: Install dependencies + run: install-nimbus-nethermind.sh skip - name: Deploy a Lido CSM Staking node, consisting of EL CL VC and mevboost run: python3 ./deploy-nimbus-nethermind.py --skip_prompts="true" --network="HOLESKY" --install_config="Lido CSM Staking Node" From 5d050a8bc0d68d1bbee0cb12984de7fdfb26ce9a Mon Sep 17 00:00:00 2001 From: coincashew <62976495+coincashew@users.noreply.github.com> Date: Wed, 24 Jul 2024 00:29:29 -0700 Subject: [PATCH 3/7] Update dev.yml --- .github/workflows/dev.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index ad74cad..60d5237 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -1,13 +1,16 @@ name: test_deployment_full_staking_node on: [push] +pull_request: jobs: run-lido-csm-staking-node: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@v4 - name: Install dependencies - run: install-nimbus-nethermind.sh skip + run: | + ./install-nimbus-nethermind.sh skip - name: Deploy a Lido CSM Staking node, consisting of EL CL VC and mevboost run: python3 ./deploy-nimbus-nethermind.py --skip_prompts="true" --network="HOLESKY" --install_config="Lido CSM Staking Node" From a61bb5ed92c918f89bf8bc5801cd7650ce927df6 Mon Sep 17 00:00:00 2001 From: coincashew <62976495+coincashew@users.noreply.github.com> Date: Wed, 24 Jul 2024 00:30:35 -0700 Subject: [PATCH 4/7] Update dev.yml --- .github/workflows/dev.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 60d5237..67399b4 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -10,7 +10,6 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Install dependencies - run: | - ./install-nimbus-nethermind.sh skip + run: ./install-nimbus-nethermind.sh skip - name: Deploy a Lido CSM Staking node, consisting of EL CL VC and mevboost run: python3 ./deploy-nimbus-nethermind.py --skip_prompts="true" --network="HOLESKY" --install_config="Lido CSM Staking Node" From 76cdc502421ade36b56e0ac75218f3de1b0dba34 Mon Sep 17 00:00:00 2001 From: coincashew <62976495+coincashew@users.noreply.github.com> Date: Wed, 24 Jul 2024 00:32:01 -0700 Subject: [PATCH 5/7] Update dev.yml --- .github/workflows/dev.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 67399b4..1097576 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -1,7 +1,10 @@ name: test_deployment_full_staking_node -on: [push] -pull_request: +on: + push: + branches: + - main + pull_request: jobs: run-lido-csm-staking-node: From 6ce7c29dc4953a8556f313816819c6fd259236da Mon Sep 17 00:00:00 2001 From: coincashew <62976495+coincashew@users.noreply.github.com> Date: Wed, 24 Jul 2024 00:34:57 -0700 Subject: [PATCH 6/7] Update install.sh --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index d44d494..f98ad32 100755 --- a/install.sh +++ b/install.sh @@ -100,9 +100,9 @@ linux_install_pre() { linux_install_installer() { ohai "Cloning ethpillar into ~/git/ethpillar" - mkdir -p ~/git/ethpillar - git clone https://github.com/coincashew/ethpillar.git ~/git/ethpillar/ 2> /dev/null || (cd ~/git/ethpillar ; git fetch origin main ; git checkout main ; git pull --ff-only ; git reset --hard) - chmod +x ~/git/ethpillar/*.sh + #mkdir -p ~/git/ethpillar + #git clone https://github.com/coincashew/ethpillar.git ~/git/ethpillar/ 2> /dev/null || (cd ~/git/ethpillar ; git fetch origin main ; git checkout main ; git pull --ff-only ; git reset --hard) + #chmod +x ~/git/ethpillar/*.sh ohai "Installing ethpillar" if [ -f /usr/local/bin/ethpillar ]; then sudo rm /usr/local/bin/ethpillar From b045a7adebe222580a1e8feb75cb7732e6616548 Mon Sep 17 00:00:00 2001 From: coincashew <62976495+coincashew@users.noreply.github.com> Date: Wed, 24 Jul 2024 00:38:43 -0700 Subject: [PATCH 7/7] Update deploy-nimbus-nethermind.py --- deploy-nimbus-nethermind.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/deploy-nimbus-nethermind.py b/deploy-nimbus-nethermind.py index bd88408..78565e5 100644 --- a/deploy-nimbus-nethermind.py +++ b/deploy-nimbus-nethermind.py @@ -30,6 +30,16 @@ import argparse from dotenv import load_dotenv, dotenv_values +import os + +def clear_screen(): + if os.name == 'posix': # Unix-based systems (e.g., Linux, macOS) + os.system('clear') + elif os.name == 'nt': # Windows + os.system('cls') + +clear_screen() # Call the function to clear the screen + # Valid configurations valid_networks = ['MAINNET', 'HOLESKY', 'SEPOLIA'] valid_exec_clients = ['NETHERMIND'] @@ -208,7 +218,6 @@ # Set to lowercase consensus_client = consensus_client.lower() -Screen().clear() # Validates an eth address def is_valid_eth_address(address): @@ -226,7 +235,6 @@ def is_valid_eth_address(address): else: print("Invalid Ethereum address. Try again.") -Screen().clear() # Validates an CL beacon node address with port def validate_beacon_node_address(ip_port): @@ -250,7 +258,7 @@ def validate_beacon_node_address(ip_port): else: BN_ADDRESS=args.vc_only_bn_address -Screen().clear() + if not args.skip_prompts: # Format confirmation message @@ -757,4 +765,4 @@ def finish_install(): install_nimbus() run_nimbus_checkpoint_sync() install_nimbus_validator() -finish_install() \ No newline at end of file +finish_install()