Files
finrod/.gitea/workflows/build.yml
João Pedro Battistella Nadas 777c80a0e1 initial commit: FastAPI translator proxying to Ollama on radagast
- app.py: /api/models filtered to gemma+aya, /api/translate streams
  NDJSON from Ollama with stream:true, /healthz for k8s probes
- static/index.html: dark-mode UI, three dropdowns (source/target/model),
  live token streaming with spinner+pulse+timer indicators
- Dockerfile: two-stage uv build, slim Python 3.13 runtime
- .gitea/workflows/build.yml: multi-arch (amd64+arm64) build, push to
  Scaleway registry on push to main
- build.sh: manual fallback if Gitea Actions isn't available
2026-06-09 15:13:48 +02:00

47 lines
1.1 KiB
YAML

name: build-and-push
on:
push:
branches: [main]
tags: ["v*"]
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU (for arm64 emulation)
uses: docker/setup-qemu-action@v3
- name: Set up Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Scaleway registry
uses: docker/login-action@v3
with:
registry: rg.nl-ams.scw.cloud
username: nologin
password: ${{ secrets.SCW_SECRET_KEY }}
- name: Compute tags
id: tags
run: |
SHORT_SHA="${GITHUB_SHA::7}"
{
echo "short_sha=${SHORT_SHA}"
} >> "$GITHUB_OUTPUT"
- name: Build & push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: |
rg.nl-ams.scw.cloud/valinor/finrod:latest
rg.nl-ams.scw.cloud/valinor/finrod:${{ steps.tags.outputs.short_sha }}
provenance: false