fix(ci): correct Rust service paths and reactivate CD pipeline

- Fix chat-ci.yml and stream-ci.yml to reference veza-chat-server/
  and veza-stream-server/ instead of non-existent apps/ paths
- Add veza-common/ to CI triggers so shared library changes are tested
- Reactivate CD pipeline with Docker registry push and Kubernetes
  deployment steps (gated on secrets availability)
- Standardize Redis dependency to v0.32 across both Rust services

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
senke 2026-02-12 22:44:56 +01:00
parent 2d664f9177
commit 8f1ccd8a56
4 changed files with 32 additions and 15 deletions

View file

@ -49,14 +49,27 @@ jobs:
cd ../veza-stream-server
docker build -t veza-stream-server:${{ github.sha }} .
# Deployment steps would go here
# - name: Deploy to Kubernetes
# run: |
# kubectl set image deployment/veza-backend-api veza-backend-api=${{ secrets.DOCKER_REGISTRY }}/veza-backend-api:${{ github.sha }}
# - name: Deploy Frontend
# run: |
# # Deploy frontend to CDN or static hosting
- name: Push Images to Registry
if: ${{ secrets.DOCKER_REGISTRY != '' }}
run: |
echo "${{ secrets.DOCKER_REGISTRY_PASSWORD }}" | docker login "${{ secrets.DOCKER_REGISTRY }}" -u "${{ secrets.DOCKER_REGISTRY_USERNAME }}" --password-stdin
for svc in veza-backend-api veza-frontend veza-chat-server veza-stream-server; do
docker tag "${svc}:${{ github.sha }}" "${{ secrets.DOCKER_REGISTRY }}/${svc}:${{ github.sha }}"
docker tag "${svc}:${{ github.sha }}" "${{ secrets.DOCKER_REGISTRY }}/${svc}:latest"
docker push "${{ secrets.DOCKER_REGISTRY }}/${svc}:${{ github.sha }}"
docker push "${{ secrets.DOCKER_REGISTRY }}/${svc}:latest"
done
- name: Deploy to Kubernetes
if: ${{ secrets.KUBE_CONFIG != '' }}
run: |
mkdir -p ~/.kube
echo "${{ secrets.KUBE_CONFIG }}" | base64 -d > ~/.kube/config
for svc in veza-backend-api veza-chat-server veza-stream-server; do
kubectl set image "deployment/${svc}" "${svc}=${{ secrets.DOCKER_REGISTRY }}/${svc}:${{ github.sha }}" \
-n veza --record || echo "Skipping ${svc} (deployment not found)"
done
kubectl rollout status deployment/veza-backend-api -n veza --timeout=300s || true
- name: Deployment Summary
run: |

View file

@ -3,11 +3,13 @@ name: Chat Server CI
on:
push:
paths:
- "apps/chat-server/**"
- "veza-chat-server/**"
- "veza-common/**"
- ".github/workflows/chat-ci.yml"
pull_request:
paths:
- "apps/chat-server/**"
- "veza-chat-server/**"
- "veza-common/**"
- ".github/workflows/chat-ci.yml"
jobs:
@ -16,7 +18,7 @@ jobs:
defaults:
run:
working-directory: apps/chat-server
working-directory: veza-chat-server
steps:
- uses: actions/checkout@v4

View file

@ -3,11 +3,13 @@ name: Stream Server CI
on:
push:
paths:
- "apps/stream-server/**"
- "veza-stream-server/**"
- "veza-common/**"
- ".github/workflows/stream-ci.yml"
pull_request:
paths:
- "apps/stream-server/**"
- "veza-stream-server/**"
- "veza-common/**"
- ".github/workflows/stream-ci.yml"
jobs:
@ -16,7 +18,7 @@ jobs:
defaults:
run:
working-directory: apps/stream-server
working-directory: veza-stream-server
steps:
- uses: actions/checkout@v4

View file

@ -76,7 +76,7 @@ zstd = "0.13"
# Database & Cache
sqlx = { version = "0.8", features = ["runtime-tokio-rustls", "postgres", "chrono", "uuid"] }
redis = { version = "0.27", features = ["tokio-comp", "connection-manager"] }
redis = { version = "0.32", features = ["tokio-comp", "connection-manager"] }
deadpool-redis = "0.15"
# Metadata extraction