ci: workflow деплоя dedinit.ru через SFTP при пуше в main (Gitea Actions)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
# Tasks: Автодеплой dedinit.ru через Gitea Actions
|
||||
|
||||
- [ ] Снять mirror-статус с `estorozhenko/dedinit.ru` в Gitea (PATCH → mirror:false)
|
||||
- Проверка: `curl -s https://gitea.nixg.ru/api/v1/repos/estorozhenko/dedinit.ru | grep '"has_actions"'` → true
|
||||
- [ ] Настроить remote `gitea` в `/opt/dedinit.ru` (git@/https с доступом на push)
|
||||
- Проверка: `git remote -v | grep gitea`
|
||||
- [ ] Создать `.gitea/workflows/deploy.yml` (checkout → hugo build → sftp deploy)
|
||||
- Проверка: `ls .gitea/workflows/deploy.yml`
|
||||
- [ ] Завести секрет `SSHPASS` в Gitea Actions secrets репозитория
|
||||
- Проверка: `curl .../actions/secrets/SSHPASS` → 200
|
||||
- [ ] Создать `sync-dedinit.sh` + cron (gitverse → gitea каждые 10 мин)
|
||||
- Проверка: запуск скрипта вручную приносит коммит, `git log` показывает его в gitea
|
||||
- [ ] Пуш в gitverse (или gitea), дождаться workflow-run
|
||||
- Проверка: API `actions/runs` показывает run, `https://dedinit.ru/` → 200, содержимое обновлено
|
||||
- [ ] `openspec validate auto-deploy-dedinit-actions` → valid
|
||||
- [ ] `openspec archive auto-deploy-dedinit-actions --yes` → изменения смержены в specs
|
||||
Reference in New Issue
Block a user