mirror of
https://github.com/Alkatrazz24/Funk-lab.git
synced 2026-07-08 19:34:42 +02:00
- admin/ia/stt.md : caveat « thinking » Qwen3 (content vide / timeout 502) + fix /no_think + fallback reasoning_content ; roadmap 5e ; bannière. - stt/server/README.md : env STT_DISABLE_THINKING + section caveat Qwen3. - admin/ia/llama_server.md : 4e instance llama-embed :1238 (nomic, dim 768), double source d'embeddings (1234 Qwen3 / 1238 nomic), caveat thinking, correction dim Qwen3 (3584 → 4096). - admin/ia/litellm.md : cross-ref caveat thinking (concerne tous les consommateurs de hermes-default/qwen3). - ci : exclure **/*.md du trigger build-stt-server (doc-only ne rebuild plus). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013FmcxGsyXZXogiAHQLjnZT
63 lines
2.1 KiB
YAML
63 lines
2.1 KiB
YAML
name: build-stt-server
|
|
|
|
# Construit l'image du STT-server, la tague par SHA de commit, et (sur main) met à jour
|
|
# le manifest k8s avec ce tag → ArgoCD déploie une image immuable et déterministe.
|
|
on:
|
|
push:
|
|
branches: ["main", "claude/**"]
|
|
paths:
|
|
- "stt/server/**"
|
|
- "!stt/server/**/*.md" # les changements doc-only ne rebuildent pas l'image
|
|
- ".github/workflows/build-stt-server.yml"
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
IMAGE: ghcr.io/alkatrazz24/funk-stt-server
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write # pour committer le bump du manifest sur main
|
|
packages: write
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Calcule le tag (SHA court) + la liste des tags
|
|
id: vars
|
|
run: |
|
|
TAG="sha-$(git rev-parse --short=7 HEAD)"
|
|
echo "tag=${TAG}" >> "$GITHUB_OUTPUT"
|
|
if [ "${{ github.ref }}" = "refs/heads/main" ]; then
|
|
echo "tags=${IMAGE}:${TAG},${IMAGE}:latest" >> "$GITHUB_OUTPUT"
|
|
else
|
|
echo "tags=${IMAGE}:${TAG}" >> "$GITHUB_OUTPUT"
|
|
fi
|
|
|
|
- name: Log in to GHCR
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Build & push
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: stt/server
|
|
push: true
|
|
tags: ${{ steps.vars.outputs.tags }}
|
|
|
|
- name: Met à jour le manifest avec le tag SHA (main uniquement)
|
|
if: github.ref == 'refs/heads/main'
|
|
run: |
|
|
sed -i "s|image: ${IMAGE}:.*|image: ${IMAGE}:${{ steps.vars.outputs.tag }}|" \
|
|
k8s/apps/stt/deployment.yaml
|
|
git config user.name "github-actions[bot]"
|
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
git add k8s/apps/stt/deployment.yaml
|
|
if ! git diff --staged --quiet; then
|
|
git commit -m "ci(stt): image → ${{ steps.vars.outputs.tag }} [skip ci]"
|
|
git pull --rebase origin main
|
|
git push
|
|
fi
|