# TBI AutoEurope Rev Connector - CI/CD Pipeline

CircleCI pipeline configuration for tbi-autoeurope-rev-connector.

## Service Information

- **Service Name**: tbi-autoeurope-rev-connector
- **Technology**: Node.js 18 + Next.js
- **Namespace**: access
- **Environments**: dev, qa, uat, prod

## Repository Structure

```
dev/tbi-autoeurope-rev-connector/
├── .circleci/
│   └── config.yml          # CircleCI pipeline configuration
├── docker/
│   └── Dockerfile          # Docker build (Node 18 Alpine + Next.js)
├── scripts/
│   ├── setup-kubectl.sh    # kubectl and helm-secrets setup
│   └── deploy-services.sh  # Deployment automation
├── charts/
│   └── tbi-autoeurope-rev-connector/
│       ├── Chart.yaml
│       ├── values.yaml
│       └── templates/      # Kubernetes manifests
└── README.md
```

## Pipeline Stages

1. **Lint and Test** - npm ci, lint, test, build validation
2. **Build and Push Images** - Docker build, tag, push to ECR
3. **Deploy to Kubernetes** - Helm chart package, S3 push, helm-secrets deploy

## Environments and Branches

| Environment | Branch  | Context    | Cluster  |
|-------------|---------|------------|----------|
| Development | develop | devops-mgt | dev      |
| QA          | qa      | devops-mgt | qa       |
| UAT         | uat     | devops-mgt | uat      |
| Production  | master  | devops-mgt | tbi-prod |

## Related Repositories

- **Application Code**: https://github.com/redlabelvacations/tbi-autoeurope-rev-connector
- **Values & Secrets**: https://github.com/redlabelvacations/tbi-environments
- **DevOps Configs**: https://github.com/redlabelvacations/tbi-devops-environments (this repo)
