Move runner to oci, simplify deploy script
All checks were successful
Test / test (push) Successful in 35s
PR Preview / deploy-preview (pull_request) Successful in 50s
PR Preview / teardown-preview (pull_request) Has been skipped

- Runner now runs on oci (arm64) — docker/kubectl are local, no SSH needed
- deploy-preview.py rewritten with subprocess (no os.system, no SSH)
  - deploy: build image, copy prod DB, create namespace, apply manifests
  - teardown: delete namespace + image
  - deploy-prod: build, push, rollout restart
- Simplified all workflow files to just call the Python script
- Deleted old hera-runner

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-06 21:17:12 +00:00
parent 2ee0c7c241
commit d6058c8d02
3 changed files with 118 additions and 87 deletions

View File

@@ -12,12 +12,5 @@ jobs:
- name: Unit tests
run: cd frontend && npm ci && npm run test:unit
- name: Build & Deploy
run: |
rsync -az --exclude node_modules --exclude .git --exclude .venv . oci:~/oil-calculator/
ssh oci "
cd ~/oil-calculator &&
docker build -t registry.oci.euphon.net/oil-calculator:latest . &&
docker push registry.oci.euphon.net/oil-calculator:latest &&
sudo k3s kubectl rollout restart deploy/oil-calculator -n oil-calculator
"
- name: Deploy
run: python3 scripts/deploy-preview.py deploy-prod