Files
poimen-memory/.forgejo/README.md
T
rock b508fc9e34 ci: completely disable auto CI workflows - use manual build only
ISSUE: Race condition and stuck runs
- .gitea/workflows/ and .forgejo/workflows/ both existed (removed .gitea earlier)
- Remaining .forgejo/workflows/build.yaml was disabled but still cluttering
- TEMPLATE.md was unused
- No way to cancel stuck runs without manual intervention

SOLUTION: Remove all auto-trigger workflows
- Deleted .forgejo/workflows/build.yaml.disabled
- Deleted .forgejo/workflows/TEMPLATE.md
- Added .forgejo/README.md explaining manual build process
- Zero CI auto-trigger (prevents race conditions)

MANUAL BUILD: Use provided script
  export REGISTRY_TOKEN='<your-token>'
  ./scripts/build-and-push.sh

Benefits:
 No race conditions (no workflows active)
 Full visibility (see every step)
 No hanging processes (direct docker commands)
 Easy to debug (plain shell script)
 Can run from anywhere (just needs docker + git)

CI Status:
- Auto CI:  DISABLED (Forgejo runners unavailable)
- Manual Build:  READY
- Code Quality:  236 tests passing
- Docker:  Ready to build

Production build workflow:
  cargo test --lib --all  # Verify tests
  cargo build --release   # Build binary
  ./scripts/build-and-push.sh  # Push to registry
2026-09-05 15:02:45 -07:00

1.9 KiB

Forgejo CI/CD Status

Status: DISABLED (Forgejo runners unavailable)

Why CI is disabled

  1. Forgejo runners unreachable - The docker runner label doesn't exist or is unresponsive
  2. Race conditions - Multiple workflow directories (.gitea + .forgejo) competing
  3. Hidden timeouts - Third-party actions (buildx, login-action) cause indefinite hangs

Solution: Manual Build Process

Use the manual build script instead:

cd ~/workplace/Poimen/memory
export REGISTRY_TOKEN='<your-token-from-vault>'
./scripts/build-and-push.sh

The script:

  • Checks all dependencies
  • Builds Docker image locally
  • Tags with: latest + short-SHA
  • Pushes to registry
  • Handles errors gracefully
  • Proper cleanup (logout)

Re-enable CI Later

When Forgejo runners are fixed:

# Create a minimal, reliable workflow
git checkout HEAD -- .forgejo/
# Or manually restore from git history

Files Removed

  • .forgejo/workflows/build.yaml (was hanging)
  • .forgejo/workflows/TEMPLATE.md (unused)
  • .gitea/workflows/* (removed in earlier commit)

Current Setup

  • CI Auto: NONE (no workflows active)
  • Manual Build: READY (./scripts/build-and-push.sh)
  • Docker: READY (Dockerfile multi-stage Rust build)
  • Code Quality: 236 tests passing, clean compilation

Production Build

#!/bin/bash
set -e

cd ~/workplace/Poimen/memory

# 1. Verify tests pass
cargo test --lib --all

# 2. Build release binary
cargo build --release

# 3. Build and push Docker image
export REGISTRY_TOKEN=$(grep REGISTRY_TOKEN ~/.vault)
./scripts/build-and-push.sh

echo "✅ Production build complete"

Monitoring

Check registry for latest image:

docker pull forgejo.riotpiao.com/rock/poimen-memory:latest
docker run -p 8080:8080 forgejo.riotpiao.com/rock/poimen-memory:latest
curl http://localhost:8080/health