Commit Graph

19 Commits

Author SHA1 Message Date
chemavx fe242ca5b3 ci: install pyyaml before YAML validation step
CI/CD / build-and-push (push) Successful in 6s
catthehacker/ubuntu:act-22.04 does not include PyYAML pre-installed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-25 10:03:02 +00:00
chemavx 116104507a ci: add image verification, YAML validation, and Telegram notifications
CI/CD / build-and-push (push) Failing after 8s
- Verify all 3 images exist in Gitea registry via Docker API before updating manifests
- Validate YAML of modified manifests after sed (python3 yaml.safe_load)
- Notify Telegram on success/failure with job status (if: always())

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-25 09:56:25 +00:00
chemavx 042a460f0c ci: migrate to buildx docker-container driver with standalone buildkitd
CI/CD / build-and-push (push) Failing after 4m15s
2026-04-22 20:10:56 +00:00
chemavx cecbc3e9ee ci: re-enable BuildKit with buildkitd.toml for OCI registry compatibility
CI/CD / build-and-push (push) Failing after 51s
Legacy builder (DOCKER_BUILDKIT=0) cannot handle OCI image indexes from
registry-cache, causing fallback to Docker Hub which is unreachable.
BuildKit sends proper OCI Accept headers and reads buildkitd.toml to use
HTTP for both the registry-cache mirror and internal Gitea registry.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 19:23:30 +00:00
chemavx 8b76802676 ci: use internal Gitea registry URL to bypass Cloudflare
CI/CD / build-and-push (push) Failing after 5m33s
Docker in DinD cannot reach git.chemavx.xyz (Cloudflare) from within
the cluster — TCP :443 times out. Switch docker login/build/push to
gitea.gitea.svc.cluster.local:3000 (insecure, same backend storage).
k8s manifest updates still reference git.chemavx.xyz for node pulls.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 19:00:43 +00:00
chemavx a4c04dedd7 ci: disable BuildKit to fix registry-mirror HTTPS bug in Docker 24
CI/CD / build-and-push (push) Failing after 5m14s
Docker 24's embedded BuildKit ignores the http:// prefix in registry-mirrors
and always attempts HTTPS, breaking the local pull-through cache.
DOCKER_BUILDKIT=0 uses the legacy builder which respects the daemon mirror
config correctly. Cache still works via --cache-from + buildcache tag.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 17:42:05 +00:00
chemavx f411d84e91 ci: switch to plain docker build avoiding docker-container driver
CI/CD / build-and-push (push) Failing after 33s
The docker-container buildkitd driver creates an isolated process that
cannot use DinD's registry-mirror config, and the cluster's registry-cache
returns 500 on BuildKit's ?ns=docker.io mirror protocol.

Plain docker build routes through the DinD daemon directly, which already
has registry-mirrors configured for docker.io pull-through cache.
Uses BUILDKIT_INLINE_CACHE=1 for layer caching between builds.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 17:38:42 +00:00
chemavx 359ce8928a ci: add docker.io mirror to buildkitd config for registry-cache
CI/CD / build-and-push (push) Failing after 4m22s
BuildKit docker-container driver runs isolated from DinD daemon config,
so it needs its own mirror declaration to route docker.io pulls through
the cluster-local pull-through cache instead of Cloudflare CDN directly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 17:29:28 +00:00
chemavx e50f783e04 ci: migrate from kaniko to buildkit/buildx with registry cache
CI/CD / build-and-push (push) Failing after 15m1s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 16:57:40 +00:00
chemavx 9b62636a3e ci: add --registry-mirror=mirror.gcr.io to all kaniko build steps
CI/CD / build-and-push (push) Successful in 2m12s
Kaniko has its own HTTP client and ignores the dind --registry-mirror flag.
Passing --registry-mirror=mirror.gcr.io directly to kaniko lets it pull
python:3.11-slim (and other Docker Hub base images) via Google's mirror
instead of the Cloudflare CDN endpoint (172.64.66.1) which is unreachable
from the runner's dind network.

Also adds mirror to dind deployment args (--registry-mirror=https://mirror.gcr.io)
so node:16-bullseye (the job runner container) is also fetched via mirror.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 17:24:57 +00:00
chemavx 9bdafaa51e feat: add dashboard source code with Vite + React + Recharts and CI/CD build
CI/CD / build-and-push (push) Successful in 2m24s
- Reconstruct dashboard from compiled container: App.jsx, main.jsx, index.css
- nginx.conf with SPA routing and /api proxy to api:8000
- Multi-stage Dockerfile: node:20-alpine build + nginx:alpine serve
- Add third kaniko build step in ci.yml for chemavx/polymarket-bot-dashboard
- Update k8s manifest sed to patch deployment-dashboard.yaml image on each push

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 17:18:32 +00:00
chemavx 1dd01e03b1 feat: replace Docker CLI builds with Kaniko (no daemon needed in job)
CI/CD / build-and-push (push) Successful in 2m35s
2026-04-13 16:35:36 +00:00
chemavx f808a3cecf fix: drop container block, set DOCKER_HOST/TLS_VERIFY as job env, install via get.docker.com
CI/CD / build-and-push (push) Failing after 54s
2026-04-13 16:22:30 +00:00
chemavx f37055821e fix: clear Docker TLS config before login + DOCKER_CERT_PATH empty in runner
CI/CD / build-and-push (push) Failing after 15s
2026-04-13 16:20:50 +00:00
chemavx cfeb404907 fix: use node:20-alpine + apk install docker-cli for Node.js + Docker
CI/CD / build-and-push (push) Failing after 10s
2026-04-13 16:18:59 +00:00
chemavx 3241b8a638 fix: use docker:24-cli container image with DOCKER_HOST pre-configured
CI/CD / build-and-push (push) Failing after 11s
2026-04-13 16:17:29 +00:00
chemavx 44a238cfd5 fix: install docker CLI in job container + pass DOCKER_HOST via runner envs
CI/CD / build-and-push (push) Failing after 51s
2026-04-13 16:15:32 +00:00
chemavx b99215f1a4 fix: use internal cluster URL and disable TLS verify for git ops
CI/CD / build-and-push (push) Failing after 1s
2026-04-13 16:08:23 +00:00
chemavx 4fda34df3b feat: initial commit — polymarket-bot source + CI/CD pipeline
CI/CD / build-and-push (push) Failing after 30s
2026-04-13 16:05:45 +00:00