go-ethereum/cicd
2022-11-22 22:22:48 +11:00
..
devnet adjust the number of nodes to 125 on devnet (#207) 2022-11-22 22:22:48 +11:00
README.md Rename s3 bucket (#206) 2022-11-12 12:29:23 +11:00

CI/CD pipeline for XDC

This directory contains CI/CD scripts used for each of the XDC environments.

How to deploy more nodes

Adjust the number of variable num_of_nodes under file .env. (Maximum supported is 58)

Devnet

Each PR merged into dev-upgrade will trigger below actions:

First time set up an new environment

  1. Pre-generate a list of node private keys in below format
{
  "xdc0": {
    "pk": {{PRIVATE KEY}}
  },
  "xdc1": {...},
  "xdc{{NUMBER}}: {...}
}
  1. Access to aws console, create a bucket with name tf-devnet-bucket:
  • You can choose any name, just make sure update the name in the s3 bucket name variable in variables.tf
  • And update the name of the terraform.backend.s3.bucket from s3.tf
  1. Upload the file from step 1 into the above bucket with name node-config.json
  2. In order to allow pipeline able to push and deploy via ECR and ECS, we require below environment variables to be injected into the CI pipeline:
  3. DOCKER_USERNAME
  4. DOCKER_PASSWORD
  5. AWS_ACCESS_KEY_ID
  6. AWS_SECRET_ACCESS_KEY

You are all set!

Testnet

*** WIP *** Testnet release build are triggered by cutting a "pre-release" tag which matches the name of TESTNET-{{release-version}} from dev-upgrade or master branch. An example can be found here: https://github.com/XinFinOrg/XDPoSChain/releases/tag/Testnet-v2.0.0 For more information, refer to github documentation on the release: https://docs.github.com/en/repositories/releasing-projects-on-github/about-releases

Mainnet

*** WIP *** Mainnet release are triggered by making a normal release tag with name starting with v (stands for version) from the master branch.