Micro serviço Core do fluxo de upload e envio de vídeos para AWS S3.
A pipeline automatiza build, testes, criação de imagens Docker e deploy no AWS EKS.
- Push/PR: Executa build, testes e criação de imagem Docker
- Push (main/develop): Publica imagem no GitHub Container Registry com assinatura Cosign
- Deploy Manual: Atualiza cluster Kubernetes via workflow_dispatch
ghcr.io/<owner>/prod-optimusframe-auth:<commit-hash> # main
ghcr.io/<owner>/dev-optimusframe-auth:<commit-hash> # develop
Configure em Settings → Secrets and variables → Actions:
| Secret | Descrição | Exemplo |
|---|---|---|
AWS_ACCESS_KEY_ID |
AWS Access Key ID | AKIAIOSFODNN7EXAMPLE |
AWS_SECRET_ACCESS_KEY |
AWS Secret Access Key | wJalrXUt... |
AWS_REGION |
Região do cluster EKS | us-east-1 |
EKS_CLUSTER_NAME |
Nome do cluster EKS | optimus-frame-cluster |
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["eks:DescribeCluster", "eks:ListClusters"],
"Resource": "*"
}
]
}- Acesse Actions → OptimusFrame Core CI/CD
- Clique em Run workflow
- Selecione ambiente:
developouproduction - Confirme execução
Análise automática de qualidade de código no SonarCloud.
- Push em
main,developoumaster - Pull requests
- Execução manual
| Secret | Descrição | Onde Obter |
|---|---|---|
SONAR_TOKEN |
Token de autenticação | SonarCloud → Account → Security |
SONAR_PROJECT_KEY |
Chave do projeto | SonarCloud → Project Settings |
- Acesse SonarCloud
- Importe o repositório GitHub
- Copie o Project Key
- Gere um Token em Account → Security
- Adicione secrets no GitHub