forked from ethereum/go-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ethereum#536 from XinFinOrg/dev-upgrade
Monthly Merge Dev-Upgrade to Master Branch: May
- Loading branch information
Showing
185 changed files
with
12,927 additions
and
3,510 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Deploy RPC Image | ||
on: | ||
#need to make sure only authorized people can use this function | ||
workflow_dispatch: | ||
inputs: | ||
network: | ||
type: choice | ||
description: 'devnet, testnet, or mainnet' | ||
options: | ||
- devnet | ||
- testnet | ||
- mainnet | ||
rpc_image: | ||
description: 'full image name' | ||
|
||
jobs: | ||
ansible: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Update RPC nodes image | ||
uses: dawidd6/action-ansible-playbook@v2 | ||
with: | ||
playbook: playbooks/update-image.yaml | ||
directory: ./cicd/ansible | ||
key: ${{secrets.SSH_PRIVATE_KEY_DEVNET}} | ||
options: | | ||
--inventory inventory.yaml | ||
--extra-vars network=${{inputs.network}} | ||
--extra-vars rpc_image=${{inputs.rpc_image}} | ||
devnet_send_notification: | ||
runs-on: ubuntu-latest | ||
needs: ansible | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Send deployment notification | ||
run: | | ||
curl --location --request POST "66.94.98.186:8080/deploy?environment=${{inputs.network}}&service=xdc_rpc&version=${{inputs.rpc_image}}" | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
ec2_rpcs: | ||
hosts: | ||
devnet: | ||
ansible_host: devnet.hashlabs.apothem.network | ||
ansible_port: 22 | ||
ansible_user: ec2-user | ||
deploy_path: /work/XinFin-Node/devnet | ||
testnet: | ||
ansible_host: testnet.hashlabs.apothem.network | ||
ansible_port: 22 | ||
ansible_user: ec2-user | ||
deploy_path: /work/XinFin-Node/testnet | ||
mainnet: | ||
ansible_host: mainnet.hashlabs.apothem.network | ||
ansible_port: 22 | ||
ansible_user: ec2-user | ||
deploy_path: /work/XinFin-Node/mainnet |
Oops, something went wrong.