name: build-stt-server # Construit et pousse l'image du STT-server vers ghcr.io quand stt/server/ change. on: push: branches: ["main", "claude/**"] paths: - "stt/server/**" - ".github/workflows/build-stt-server.yml" workflow_dispatch: env: IMAGE: ghcr.io/alkatrazz24/funk-stt-server jobs: build: runs-on: ubuntu-latest permissions: contents: read packages: write steps: - uses: actions/checkout@v4 - name: Log in to GHCR uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Metadata (tags) id: meta uses: docker/metadata-action@v5 with: images: ${{ env.IMAGE }} tags: | type=raw,value=latest,enable={{is_default_branch}} type=sha,format=short - name: Build & push uses: docker/build-push-action@v6 with: context: stt/server push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}