{"id":51934998,"url":"https://github.com/feezyhendrix/coldcluster-cicd","last_synced_at":"2026-07-28T14:00:29.938Z","repository":{"id":372655772,"uuid":"1308873619","full_name":"FeezyHendrix/coldcluster-cicd","owner":"FeezyHendrix","description":null,"archived":false,"fork":false,"pushed_at":"2026-07-22T16:57:33.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-22T18:07:32.506Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FeezyHendrix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-07-22T13:45:01.000Z","updated_at":"2026-07-22T16:08:53.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/FeezyHendrix/coldcluster-cicd","commit_stats":null,"previous_names":["feezyhendrix/coldcluster-cicd"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/FeezyHendrix/coldcluster-cicd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FeezyHendrix%2Fcoldcluster-cicd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FeezyHendrix%2Fcoldcluster-cicd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FeezyHendrix%2Fcoldcluster-cicd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FeezyHendrix%2Fcoldcluster-cicd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FeezyHendrix","download_url":"https://codeload.github.com/FeezyHendrix/coldcluster-cicd/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FeezyHendrix%2Fcoldcluster-cicd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35994924,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-28T02:00:06.341Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-07-28T14:00:23.101Z","updated_at":"2026-07-28T14:00:29.924Z","avatar_url":"https://github.com/FeezyHendrix.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Coldcluster CI/CD\n\nCI/CD pipeline for [BluelightNG/coldcluster-folawej-](https://github.com/BluelightNG/coldcluster-folawej-), running on a separate GitHub account to avoid the org's Actions billing block.\n\n## Architecture\n\n```\nBluelightNG/coldcluster-folawej-  (source repo)\n        |\n        |  repository_dispatch / workflow_dispatch\n        v\nFeezyHendrix/coldcluster-cicd     (this repo)\n   ├── ci.yml      → checkout source → test/build all 7 apps in parallel\n   └── deploy.yml  → SSH to VPS → git pull → docker compose build + up → health check\n```\n\n## Apps tested\n\n| Job | App | What it checks |\n|-----|-----|----------------|\n| gravas-test | Go backend | `go vet` + `go build` + `go test -race` |\n| sentry-build | Admin panel (React) | `tsc --noEmit` + `vite build` |\n| mobile-build | Customer app (Ionic React) | `npm run build` |\n| terminal-typecheck | Coin kiosk (Electron) | `tsc --noEmit` |\n| watcher-typecheck | Staff kiosk (Electron) | `npm run typecheck` |\n| watchtower-build | Audit dashboard (React) | `pnpm build` |\n| compose-validate | Docker Compose | `docker compose config` |\n\n## Required secrets\n\nSet these in **this repo's** Settings → Secrets and variables → Actions:\n\n| Secret | Description |\n|--------|-------------|\n| `SOURCE_REPO_TOKEN` | GitHub PAT with `repo` scope on `BluelightNG/coldcluster-folawej-` (for checkout) |\n| `VPS_SSH_KEY` | ed25519 private key for the deploy user on the VPS |\n| `VPS_KNOWN_HOSTS` | `ssh-keyscan 161.97.127.74` output |\n| `VPS_HOST` | `161.97.127.74` |\n| `VPS_USER` | `folawejv2` |\n\n## How to trigger\n\n### Manual (workflow_dispatch)\n\n```bash\n# Run CI on a specific branch\ngh workflow run ci.yml --repo FeezyHendrix/coldcluster-cicd -f ref=master\n\n# Deploy a specific ref to production\ngh workflow run deploy.yml --repo FeezyHendrix/coldcluster-cicd -f ref=prod -f environment=production\n\n# Deploy to staging\ngh workflow run deploy.yml --repo FeezyHendrix/coldcluster-cicd -f ref=master -f environment=staging\n```\n\n### Automatic (from the main repo)\n\nAdd a webhook workflow to `BluelightNG/coldcluster-folawej-/.github/workflows/trigger-cicd.yml`:\n\n```yaml\nname: Trigger CI/CD\n\non:\n  push:\n    branches: [master, prod]\n  pull_request:\n    branches: [master, prod]\n\njobs:\n  trigger:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: peter-evans/repository-dispatch@v3\n        with:\n          token: ${{ secrets.CICD_DISPATCH_TOKEN }}\n          repository: FeezyHendrix/coldcluster-cicd\n          event-type: ci-trigger\n          client-payload: \u003e\n            {\"ref\": \"${{ github.head_ref || github.ref_name }}\",\n             \"sha\": \"${{ github.sha }}\"}\n\n  deploy:\n    if: github.ref == 'refs/heads/prod' \u0026\u0026 github.event_name == 'push'\n    needs: trigger\n    runs-on: ubuntu-latest\n    steps:\n      - uses: peter-evans/repository-dispatch@v3\n        with:\n          token: ${{ secrets.CICD_DISPATCH_TOKEN }}\n          repository: FeezyHendrix/coldcluster-cicd\n          event-type: deploy-trigger\n          client-payload: \u003e\n            {\"ref\": \"prod\", \"sha\": \"${{ github.sha }}\", \"environment\": \"production\"}\n```\n\nFor this, add a `CICD_DISPATCH_TOKEN` secret to the **main repo** — a PAT from `FeezyHendrix` with `repo` scope on this CI/CD repo.\n\n## VPS deploy flow\n\n1. SSH into `folawejv2@161.97.127.74`\n2. `cd /opt/coldcluster \u0026\u0026 git fetch \u0026\u0026 git checkout \u003cref\u003e \u0026\u0026 git reset --hard origin/\u003cref\u003e`\n3. `bash deploy/scripts/deploy.sh` (docker compose build + up)\n4. Health checks: `api.folawej.com/health`, `admin.folawej.com`, `app.folawej.com`\n\n## Rollback\n\nThe deploy step logs `ROLLBACK_REF=\u003csha\u003e` before pulling new code. To roll back:\n\n```bash\nssh folawejv2@161.97.127.74\ncd /opt/coldcluster\ngit checkout \u003cROLLBACK_REF\u003e\nbash deploy/scripts/deploy.sh\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeezyhendrix%2Fcoldcluster-cicd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffeezyhendrix%2Fcoldcluster-cicd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeezyhendrix%2Fcoldcluster-cicd/lists"}