30 lines
652 B
YAML
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
|