diff --git a/.github/scripts/put-all-chain-nodes-on-standby.sh b/.github/scripts/put-all-chain-nodes-on-standby.sh index 591e64d0c..d85ccba71 100755 --- a/.github/scripts/put-all-chain-nodes-on-standby.sh +++ b/.github/scripts/put-all-chain-nodes-on-standby.sh @@ -2,7 +2,9 @@ set -x # get all the node's ec2 instance ids for the specified chain id -chain_node_instance_ids=$(aws ec2 describe-instances --filters "Name=tag:KavaChainId,Values=$CHAIN_ID" | jq -r '[.Reservations | .[] | .Instances | .[] | .InstanceId] | join(" ")') +# TODO: fix this and the sharded cluster module to add tags +#chain_node_instance_ids=$(aws ec2 describe-instances --filters "Name=tag:KavaChainId,Values=$CHAIN_ID" | jq -r '[.Reservations | .[] | .Instances | .[] | .InstanceId] | join(" ")') +chain_node_instance_ids='i-0a363f6816eb3ae88' for chain_node_instance_id in ${chain_node_instance_ids} do diff --git a/.github/workflows/cd-protonet.yml b/.github/workflows/cd-protonet.yml index 307522067..a81511f94 100644 --- a/.github/workflows/cd-protonet.yml +++ b/.github/workflows/cd-protonet.yml @@ -30,34 +30,34 @@ jobs: chain-id: proto_2221-17000 ssm-document-name: kava-testnet-internal-node-update playbook-name: reset-protonet-playbook.yml - playbook-infrastructure-branch: master + playbook-infrastructure-branch: ss-protonet secrets: inherit -# -# # start kava with new binary and genesis state on api, peer and seed nodes, place nodes in service once they start and are synched to live -# start-chain-api: -# uses: ./.github/workflows/cd-start-chain.yml -# with: -# aws-region: us-east-1 -# chain-id: proto_2221-17000 -# ssm-document-name: kava-testnet-internal-node-update -# playbook-name: start-chain-api-playbook.yml -# playbook-infrastructure-branch: master -# secrets: inherit -# needs: [reset-chain-to-zero-state] -# -# # setup test and development accounts and balances, deploy contracts by calling the chain's api -# seed-chain-state: -# uses: ./.github/workflows/cd-seed-chain.yml -# with: -# chain-api-url: https://rpc.app.protonet.us-east.production.kava.io:443 -# chain-id: proto_2221-17000 -# seed-script-filename: seed-protonet.sh -# erc20-deployer-network-name: protonet -# genesis_validator_addresses: "kavavaloper1te0aljy2m4zzysymw7dxkxy0fa6d7ws5fj3vmp" -## genesis_validator_addresses: "kavavaloper14w4avgdvqrlpww6l5dhgj4egfn6ln7gmtp7r2m" -# kava_version_filepath: ./ci/env/kava-protonet/KAVA.VERSION -# secrets: inherit -# needs: [start-chain-api] + + # start kava with new binary and genesis state on api, peer and seed nodes, place nodes in service once they start and are synched to live + start-chain-api: + uses: ./.github/workflows/cd-start-chain.yml + with: + aws-region: us-east-1 + chain-id: proto_2221-17000 + ssm-document-name: kava-testnet-internal-node-update + playbook-name: start-chain-api-playbook.yml + playbook-infrastructure-branch: ss-protonet + secrets: inherit + needs: [reset-chain-to-zero-state] + + # setup test and development accounts and balances, deploy contracts by calling the chain's api + seed-chain-state: + uses: ./.github/workflows/cd-seed-chain.yml + with: + chain-api-url: https://rpc.app.protonet.us-east.production.kava.io:443 + chain-id: proto_2221-17000 + seed-script-filename: seed-protonet.sh + erc20-deployer-network-name: protonet + genesis_validator_addresses: "kavavaloper1te0aljy2m4zzysymw7dxkxy0fa6d7ws5fj3vmp" +# genesis_validator_addresses: "kavavaloper14w4avgdvqrlpww6l5dhgj4egfn6ln7gmtp7r2m" + kava_version_filepath: ./ci/env/kava-protonet/KAVA.VERSION + secrets: inherit + needs: [start-chain-api] ## post-pipeline-metrics: ## uses: ./.github/workflows/metric-pipeline.yml ## if: always() # always run so we metric failures and successes diff --git a/.github/workflows/cd-reset-internal-testnet.yml b/.github/workflows/cd-reset-internal-testnet.yml index 738fd4c39..4b1d531b2 100644 --- a/.github/workflows/cd-reset-internal-testnet.yml +++ b/.github/workflows/cd-reset-internal-testnet.yml @@ -69,11 +69,11 @@ jobs: --max-upgrade-batch-size=0 \ --wait-for-node-sync-after-upgrade=false env: - SSM_DOCUMENT_NAME: ${{ inputs.ssm-document-name }} - PLAYBOOK_NAME: ${{ inputs.playbook-name }} - CHAIN_ID: ${{ inputs.chain-id }} - AWS_REGION: ${{ inputs.aws-region }} + SSM_DOCUMENT_NAME: ${{ inputs.ssm-document-name }} # kava-testnet-internal-node-update + PLAYBOOK_NAME: ${{ inputs.playbook-name }} # reset-protonet-playbook.yml + CHAIN_ID: ${{ inputs.chain-id }} # proto_2221-17000 + AWS_REGION: ${{ inputs.aws-region }} # us-east-1 AWS_ACCESS_KEY_ID: ${{ secrets.CI_AWS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.CI_AWS_KEY_SECRET }} AWS_SDK_LOAD_CONFIG: 1 - PLAYBOOK_INFRASTRUCTURE_BRANCH: ${{ inputs.playbook-infrastructure-branch }} + PLAYBOOK_INFRASTRUCTURE_BRANCH: ${{ inputs.playbook-infrastructure-branch }} # master \ No newline at end of file