sr-cardoso-ops

yurikrat's avatarfrom yurikrat

Operacoes e deploy do Sr Cardoso (Cloud Run, Firestore rules/indexes, env vars, scripts, Docker). Use quando configurar ambiente, rodar deploy, revisar infra GCP ou rotinas de setup.

⭐0stars🔀0forks📁View on GitHub🕐Updated Jan 3, 2026⬇️1downloads

When & Why to Use This Skill

The Sr Cardoso Ops skill is a specialized DevOps assistant designed to streamline deployment and infrastructure management on Google Cloud Platform (GCP). It automates the orchestration of Cloud Run services, Firestore security rules, and database indexing, ensuring consistent environment configurations through Docker and optimized shell scripts.

Use Cases

  • Case 1: Automating Cloud Run deployments using local scripts to ensure fast and reliable service updates without complex CI/CD overhead.
  • Case 2: Managing Firestore database integrity by deploying updated security rules and performance-optimized indexes directly from the codebase.
  • Case 3: Configuring and synchronizing environment variables across server and web applications to maintain environment consistency.
  • Case 4: Executing infrastructure setup and database seeding routines, such as initializing user data or barbershop profiles, during system bootstrap.
namesr-cardoso-ops
descriptionOperacoes e deploy do Sr Cardoso (Cloud Run, Firestore rules/indexes, env vars, scripts, Docker). Use quando configurar ambiente, rodar deploy, revisar infra GCP ou rotinas de setup.

Sr Cardoso Ops

Overview

Executar operacoes e deploy do sistema com Cloud Run, Firestore e scripts locais.

Documentacao base

  • Consultar documento.md para estado real da infra GCP e comandos usados.
  • Consultar README.md para setup/dev/deploy basico.
  • Consultar docs/WHATSAPP_INFRA_PLAN.md para Evolution/WhatsApp.

Scripts principais

  • Usar scripts/deploy-cloudrun.sh para deploy sem Cloud Build.
  • Usar scripts/init-barbers.ts para seed de barbeiros.

Env vars importantes (server)

  • ADMIN_JWT_SECRET, ADMIN_PASSWORD, ADMIN_USERNAME (bootstrap).
  • GCP_PROJECT_ID, GCP_STORAGE_BUCKET.
  • WEB_ORIGIN, CANCEL_LINK_PEPPER.
  • EVOLUTION_BASE_URL, EVOLUTION_API_KEY, EVOLUTION_INSTANCE_NAME.
  • CRON_SECRET.

Env vars (web)

  • VITE_API_BASE_URL em apps/web/.env.

Firestore

  • Regras em firebase/firestore.rules.
  • Indexes em firebase/firestore.indexes.json.

Build e container

  • Dockerfile em apps/server/Dockerfile faz build de web + server.
  • Cloud Run serve apps/web/dist via STATIC_DIR.

Alertas operacionais

  • gcloud run services update --set-env-vars substitui a lista inteira.
  • Manter secrets no Secret Manager quando possivel.
  • Tratar apps/functions como legado (nao usar).