# cicd-core
This repository contains tidbcloud common CI/CD template, Welcome bros!
You can use cicd-core to reduce your workflow's code

## Quick Start
```
## download cicd-core in workflow
- name: Checkout cicd-core
  uses: actions/checkout@v3
  with:
    repository: tidbcloud/cicd-core
    ref: main
    token: ${{ secrets.GIT_ACTION_BOT }}
    path: cicd-core

## use cicd-core template that you need
- name: ${template_name}
  uses: ./cicd-core/${template_path}
  with:
    ${parameter_key}: ${parameter_value}
```

## File Structure
```
tirelease
├── .gitignore
├── README.md
├── CODEOWNERS
└── components/               # CI/CD components
    └── aws/
    └── cd/
    └── ci/
    └── env-dev/
    └── gcp/
    └── tools/
└── deployments/              # deployments configuration
    └── pulumi/
└── workflows/                # CI/CD workflow 
    └── cd/
```
