Commit graph

13 commits

Author SHA1 Message Date
Ashwin Kumar Sivakumar
2025d912a5 fix(ci): sort registry prune by real image build time, protect current SHA
All checks were successful
build-and-release / build (push) Successful in 1m24s
registry_prune.py sorted candidate tags by the manifest GET response's
Date header - which is just "now", the moment the prune script made
that request - not when the image was actually built. Every tag it
queries in the same prune run lands within the same second, so the
"sort by age" was effectively random. On run #56 this deleted the tag
this same CI run had just pushed (4efe848, digest 60114dea) seconds
after pushing it, and seconds before the gitops step committed a
deployment pointing at that now-deleted digest - the cluster then
sat in ImagePullBackOff since the referenced image no longer existed.

Now reads the real "created" timestamp from the image's config blob
(resolving through a manifest list/index if the tag is multi-platform),
and always protects the current run's own SHA from deletion regardless
of sort order, as defense in depth against any remaining timestamp edge
cases.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-17 05:37:14 +05:30
Ashwin Kumar Sivakumar
629a5eeebc fix(ci): push gitops updates via GitHub instead of direct-to-Forgejo
Some checks failed
build-and-release / build (push) Failing after 1m23s
GITOPS_PAT auth was failing against Forgejo. GitHub is the source of
truth for nxtgauge-gitops; push there and let sync-to-forgejo.yml
relay to Forgejo, which Flux actually watches.
2026-07-12 22:55:19 +05:30
Ashwin Kumar Sivakumar
c8af6e4114 fix(ci): use GITOPS_PAT for gitops push, not never-configured SSH secrets
Some checks failed
build-and-release / build (push) Failing after 1m50s
Third bug in the same chain: GITEOPS_REPO/GITEOPS_SSH_KEY were
referenced but never actually configured as repo secrets (only
REGISTRY_*, GITOPS_GITHUB_*, and GITOPS_PAT exist) — the digest
extraction fix got the job to actually reach this step, where it then
failed instantly and silently (a bare `test -n` with no echo). Switch
to an HTTPS clone with GITOPS_PAT, matching nxtgauge-backend-rust's
already-working workflow.
2026-07-12 18:36:42 +05:30
Ashwin Kumar Sivakumar
52e7e86a0e fix(ci): tolerate whitespace in buildx metadata-file digest grep
Some checks failed
build-and-release / build (push) Failing after 1m31s
The docker gateway fix got the build to actually run and push
successfully, but the digest-extraction grep required a compact
":" with no space, while buildx writes the metadata file
pretty-printed ("containerimage.digest": "sha256:..."), so the match
always failed, aborting the step post-push and skipping the
GitOps-release step entirely. Match nxtgauge-backend-rust's
whitespace-tolerant pattern.
2026-07-12 18:32:36 +05:30
Ashwin Kumar Sivakumar
ca1d3f504d fix(ci): detect docker gateway instead of hardcoding 127.0.0.1
Some checks failed
build-and-release / build (push) Failing after 2m8s
Every build on this branch has been failing with "Cannot connect to
the Docker daemon at tcp://127.0.0.1:2375" — the job container is
nested one level inside the runner pod's dind sidecar, so its own
loopback isn't the sidecar's. nxtgauge-backend-rust already carries
the fix (read the container's default-route gateway from
/proc/net/route); porting the same step here.
2026-07-12 18:28:17 +05:30
Ashwin Kumar Sivakumar
cfbe2b7716 Update Forgejo frontend publish workflow 2026-06-17 03:28:47 +05:30
Ashwin Kumar Sivakumar
491ade57c0 feat(ai): integrate AI usage/credits into dashboard and chat widget 2026-06-15 06:19:05 +05:30
Ashwin Kumar Sivakumar
491b6725b6 fix(ci): target docker-ready forgejo runner
Some checks failed
build-and-release / build (push) Failing after 54s
2026-06-14 19:05:52 +05:30
Ashwin Kumar Sivakumar
18759f9670 fix(ci): deploy frontend via immutable gitops release
Some checks failed
build-and-release / build (push) Failing after 5s
2026-06-14 05:52:50 +05:30
Ashwin Kumar Sivakumar
494384e6c6 fix: use kaniko for forgejo image builds
Some checks failed
build-and-push / build (push) Failing after 14s
2026-06-12 22:55:00 +05:30
Ashwin Kumar Sivakumar
e856eae414 fix: use dind service for forgejo builds
Some checks failed
build-and-push / build (push) Failing after 21s
2026-06-12 22:09:33 +05:30
Ashwin Kumar Sivakumar
b55f69ffc4 fix: install docker cli in forgejo workflow namespace
Some checks failed
build-and-push / build (push) Failing after 21s
2026-06-12 22:07:26 +05:30
Ashwin Kumar Sivakumar
c8ecb6bf81 chore: migrate ci naming to forgejo 2026-06-11 17:17:42 +05:30
Renamed from .gitea/workflows/build.yaml (Browse further)