# tbi-newredtag-ca - CircleCI Pipeline

## Service Info
- **Repo**: https://github.com/redlabelvacations/newredtag.ca.git
- **Tech**: PHP 8.0
- **Namespace**: redtag
- **Environment**: dev (develop branch)

## Pipeline Flow
```
lint-and-test → build-and-push-images → deploy-to-kubernetes
```

## Files
```
dev/tbi-newredtag-ca/
├── .circleci/config.yml          # CircleCI pipeline
├── .github/workflows/
│   └── manage-secrets.yml        # Secrets management
├── docker/Dockerfile             # PHP 8.0 Dockerfile
├── scripts/
│   ├── deploy-services.sh        # Deployment script
│   └── setup-kubectl.sh          # kubectl/helm setup
├── charts/tbi-newredtag-ca/
│   ├── Chart.yaml
│   ├── values.yaml
│   └── templates/
│       ├── deployment.yaml
│       ├── service.yaml
│       ├── ingress.yaml
│       ├── secrets.yaml
│       ├── hpa.yaml
│       └── pdb.yaml
└── README.md
```

## Prerequisites (tbi-environments repo)
1. Values file: `dev/values/tbi-newredtag-ca.yaml`
2. Secrets file: `dev/secrets/secrets.tbi-newredtag-ca.yaml` (SOPS encrypted)
3. Entry in: `dev/requirements.yaml`

## CircleCI Context
- Context: `devops-mgt`
- Runner: `tbi-local-runner/loadtest`
- Branch filter: `develop`

## Required CircleCI Environment Variables
- `GITHUB_TOKEN` - PAT with access to tbi-devops-environments and tbi-environments
- `AWS_ACCOUNT_ID` - 594765360358
- `AWS_REGION` - ca-central-1
- `CLUSTER_NAME` - dev
- `DEPLOY_ENV` - dev

## Service Repo Setup
Add a `VERSION` file to the root of the newredtag.ca repo:
```bash
echo "1.0.0" > VERSION
```
