ci: simplify runner disk resize check
Some checks failed
Deploy to Frontend Servers / deploy (push) Failing after 2s
Some checks failed
Deploy to Frontend Servers / deploy (push) Failing after 2s
This commit is contained in:
@@ -49,6 +49,18 @@ The workflow expects these Gitea secrets:
|
||||
|
||||
## Common failures
|
||||
|
||||
### Runner disk still shows the old EBS size
|
||||
|
||||
If the EC2 runner EBS volume was expanded but CI still reports a small root filesystem (for example `df -h /` still shows 8GB), the partition/filesystem has not grown yet. The deploy workflow runs an early `Ensure runner disk space` step that tries to grow `/` before installing dependencies:
|
||||
|
||||
```bash
|
||||
sudo growpart <root-disk> <root-partition>
|
||||
sudo resize2fs <root-partition> # ext filesystems
|
||||
# or sudo xfs_growfs / # xfs filesystems
|
||||
```
|
||||
|
||||
If that step says `growpart not installed`, install `cloud-utils-growpart` on the runner host and rerun the workflow.
|
||||
|
||||
### Node version is too old
|
||||
|
||||
The workflow pins Node.js 22 using `actions/setup-node`. This keeps the self-hosted runner from using an older system Node version during `npm ci`, tests, and build.
|
||||
|
||||
Reference in New Issue
Block a user