Files
dengwenhao 1e142f1de4
Deploy TodoList / deploy (push) Successful in 3s
Use production host runner for deployment
2026-07-27 07:52:16 +00:00

30 lines
652 B
YAML

name: Deploy TodoList
on:
push:
branches:
- main
workflow_dispatch:
jobs:
deploy:
runs-on: todolist-production
timeout-minutes: 20
steps:
- name: Verify production runner
shell: bash
run: |
set -Eeuo pipefail
test "$(id -un)" = "scaiuser"
test -x /home/scaiuser/dwh_apps/fastapi-todolist/scripts/ci-deploy-entrypoint.sh
systemctl --user is-active todolist-gitea-runner.service
- name: Deploy production
shell: bash
run: |
set -Eeuo pipefail
/home/scaiuser/dwh_apps/fastapi-todolist/scripts/ci-deploy-entrypoint.sh