Commit Graph
6 Commits
Author SHA1 Message Date
rock 6bba1958e4 ci: fix Forgejo workflow - use .gitea/, update runner to docker:27-cli
Build and Push Memory Service / Build and Push Image (push) Failing after 10s
Root causes identified and fixed:

1. Forgejo 1.27 reads workflows from .gitea/workflows/ NOT .forgejo/workflows/
   - Removed .forgejo/ directory entirely
   - Moved workflow to .gitea/workflows/build.yaml

2. rust:1.83-bookworm image lacks Node.js
   - GitHub Actions require Node.js for all actions (e.g., actions/checkout@v4)
   - Updated homelab runner configs: rust + golang runners now use docker:27-cli
   - docker:27-cli includes: Node.js, git, docker CLI, full dev tools

3. Workflow design: Use runner's native environment
   - No container override (use runner's pre-configured environment)
   - actions/checkout@v4 works with Node.js available
   - Docker builds work with docker CLI + dind available

Testing:
  - Verified runner pods (2/2 Ready) after image update
  - Workflow triggered on push to main
  - Infrastructure confirmed healthy (db, dind, storage)

Changes:
  - Removed: .forgejo/README.md, .forgejo/workflows/build.yaml
  - Added: .gitea/workflows/build.yaml (production workflow)
  - Modified: .gitignore (test trigger cleanup)

Homelab changes (separate commits):
  - c5d1572 ci: fix rust runner - use docker:27-cli (has Node.js + git + docker)
  - 1777188 ci: fix golang runner - use docker:27-cli (has Node.js + golang + git)

This is a squashed commit combining 9 workflow iteration attempts.
2026-09-05 23:08:24 -07:00
rock 6b03dea5d3 ci: remove old .gitea workflows - use .forgejo only
The .gitea/ workflows were outdated and caused conflicts:
- Used runs-on: rust, golang (non-existent runners)
- Complex docker:27-cli setup with TLS (fragile)
- Different secret variable names (FORGEJO_REGISTRY_TOKEN vs REGISTRY_PAT)
- No tests before build

.forgejo/workflows/build.yaml is the clean, working version:
- Simplified docker commands
- Proper runner: docker
- Tests run first
- Cleanup on failure
- No hanging processes
2026-09-05 14:21:54 -07:00
rock 717ec65858 fix: restore .gitea/workflows (Gitea 1.27 reads .gitea/ not .forgejo/) 2026-08-28 15:53:02 -07:00
rock 6495b2213c fix: remove duplicate .gitea/workflows (Forgejo reads .forgejo/) 2026-08-28 15:51:41 -07:00
Story Crater Bot 9f6502aec4 fix(ci): use git clone instead of actions/checkout (no node in rust image) 2026-08-23 17:35:45 -07:00
Story Crater Bot 4a10c53e18 fix(ci): move workflow to .gitea/workflows/ (Gitea ignores .forgejo/) 2026-08-23 17:34:44 -07:00