Actions
Task #932
closedPE-1817: Fix LXC deployment automation
Status:
Done
Priority:
Urgent
Assignee:
-
Target version:
-
Start date:
2026-05-16
Due date:
% Done:
100%
Estimated time:
Description
Problem¶
LXC deployment requires manual file pushes after git push. No automated deployment on code changes.
Current Manual Process¶
- Developer pushes to git
- Run: la-infra-cli proxmox push-file (each file)
- Run: php artisan migrate on LXC
- Run: php artisan route:clear
Required for Production¶
- Git hook to trigger deployment
- SSH key setup for automated push
- Deployment script in .forgejo/workflows/
Proposed Solution¶
- Add .forgejo/workflows/deploy.yml workflow
- On push to main: la-infra-cli proxmox pull-files + migrate + clear cache
- Support for staging/production branches
Workflow Requirements¶
- Trigger on: push to main, release tags
- Steps: pull code, install deps, migrate, clear cache, restart workers
- Notifications on failure
- Rollback capability
Implementation¶
- Create .forgejo/workflows/deploy.yml
- Add deployment scripts/ directory
- Configure la-infra-cli credentials in Forgejo secrets
- Test with staging environment first
Files to Create¶
- .forgejo/workflows/deploy.yml
- scripts/deploy-lxc.sh
- scripts/rollback.sh
Related¶
- PE-1803: Fix LXC route deployment issue (blocked by this)
Updated by Fredrick Amnehagen 40 minutes ago
- Status changed from To do to Done
- % Done changed from 0 to 100
Added scripts/deploy-lxc.sh with automated deployment workflow. Added .forgejo/workflows/deploy.yml for CI/CD. Usage: ./scripts/deploy-lxc.sh
Actions