Replaces the existing Go-based f1-stream service with a new Python/FastAPI backend as the foundation for the rebuilt F1 streaming aggregation service. - New FastAPI backend with health and root endpoints - Python 3.13 slim Dockerfile (replaces Go multi-stage build) - Updated Terraform deployment (port 8000, reduced resources) - Buildx-based redeploy.sh with --platform linux/amd64 - Added Woodpecker CI pipeline for automated builds - Removed all old Go source, node_modules, static assets
30 lines
732 B
YAML
30 lines
732 B
YAML
when:
|
|
event: push
|
|
path: "stacks/f1-stream/files/**"
|
|
|
|
clone:
|
|
git:
|
|
image: woodpeckerci/plugin-git
|
|
settings:
|
|
attempts: 5
|
|
backoff: 10s
|
|
|
|
steps:
|
|
- name: build-image
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
settings:
|
|
username: "viktorbarzin"
|
|
password:
|
|
from_secret: dockerhub-pat
|
|
repo: viktorbarzin/f1-stream
|
|
dockerfile: stacks/f1-stream/files/Dockerfile
|
|
context: stacks/f1-stream/files
|
|
platforms: linux/amd64
|
|
provenance: false
|
|
auto_tag: true
|
|
|
|
- name: deploy
|
|
image: bitnami/kubectl
|
|
commands:
|
|
- kubectl -n f1-stream rollout restart deployment f1-stream
|
|
- kubectl -n f1-stream rollout status deployment f1-stream --timeout=120s
|