This repository will use GitHub Action to run two pipelines (oh-my-github-pipeline and repo-track-pipeline) to collect your GitHub data and persist it to your own TiDB Serverless cluster (Your data will not be collected by other services).
See .github/workflows/pipelines.yml file for more details about the pipeline GitHub Action workflows.
Please follow the steps below to set up GitHub Actions on your forked repository.
Click here to fork your own repository from the pingcap/ossinsight-lite repository
Please follow the steps below to configure the connection information of TiDB cluster to GitHub Action's Secrets (which is required to run the pipeline workflow).
-
Go to Settings / Secrets and variables / Actions page of your forked repository.
-
Click New repository secret button at right top of the page.
-
In the Name field, type "DATABASE_URL".
-
In the Secret field, enter the value of
DATABASE_URL
of your TiDB Serverless cluster as following format:mysql://<user>:<password>@<host>:<port>
Please use the TiDB Serverless cluster connection information (can be found in the Connect to dialog shown in last step) to replace the above
<user>
,<password>
,<host>
,<port>
parts, and please DO NOT type any blank characters.Click to check the example
For example, if the connection information provided by the TiDB Serverless cluster is as follows:
host: 'gateway01.us-west-2.prod.aws.tidbcloud.com', port: 4000, user: '4Budszs5sxiUZ65.root', password: 'Us1h2MRraVB4zfpU', ssl_ca: /etc/ssl/cert.pem
The value of
DATABASE_URL
typed in the Secret field should be:mysql://4Budszs5sxiUZ65.root:[email protected]:4000
-
Click Add secret button to finish.
See Environment Variables section to learn about the other environment variables that will be used by the pipeline workflow.
-
Click Actions tab of your forked repository and make sure you enable GitHub Action for this repo.
-
Click GitHub Data Pipeline workflow on the left navigation bar, click Enable workflow if the warning alert exists.
Once the workflow is enabled, it will be scheduled in every 2 hours.
-
For the first time, you can manually run workflow.
The workflow can take a while, depending on how much activity you have on GitHub.
You can continue with the next steps without waiting for workflow to complete. If any errors occur during workflow, please refer to the troubleshooting section (TODO) for solutions.
Previous step: 1. Setup TiDB Serverless cluster
Next step: 3. Deploy to Vercel