blumeops/docs/reference/services/cv.md
Erich Blume 930f99d706 C1: migrate cv + docs from minikube to indri-native (deploy artifacts)
Replaces the cv and docs minikube Deployments with ansible roles that
download release tarballs into ~/cv/content and ~/docs/content on indri.
Caddy now serves those directories directly via a new kind=static
service-block in the Caddy template; no daemon, no nginx pod, no
ProxyGroup ingress on the request path.

This commit adds the deploy-side artifacts only. Live cutover (delete
argocd apps, run ansible, verify) is staged manually after PR review;
the dead containers/{cv,quartz} and argocd manifests are removed in a
follow-up commit so each commit is internally consistent.

Workflows are simplified: the deploy step now bumps the role's pinned
version and pushes; running ansible + purging the Fly cache is manual
from gilbert (matches the devpi pattern).

service-versions.yaml: cv and docs are type=ansible. docs current-version
remains 1.28.2 for now to keep container-version-check passing while
containers/quartz still exists; will move to the docs release tag in the
cleanup commit.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-29 14:33:57 -07:00

2.5 KiB

title modified last-reviewed tags
CV 2026-04-29 2026-04-29
service
resume

CV (Resume)

Personal resume/CV served as a static HTML page with PDF download, built from YAML source via Jinja2 and WeasyPrint.

Quick Reference

Property Value
Public URL cv.eblu.me (via flyio-proxy)
Private URL cv.ops.eblu.me (Caddy on indri)
Deployment Ansible role cv on indri (no daemon — Caddy serves files directly)
Content dir ~/cv/content/ on indri
Source repo forge.eblu.me/eblume/cv (private, not mirrored to GitHub)
Content packages forge.eblu.me/eblume/-/packages (generic package cv)

Migrated from minikube to indri-native on 2026-04-29 (see cv-on-indri).

Architecture

  1. Source: resume.yaml (content) + template.html (Jinja2) + style.css in the cv repo
  2. Build: render.py (uv script runner) generates index.html; WeasyPrint generates resume.pdf
  3. Release: Dagger build function packages index.html, style.css, resume.pdf into a tarball, uploaded to Forgejo generic packages
  4. Deploy: ansible role downloads the tarball into ~/cv/content/ on indri; Caddy serves the directory directly

Endpoints

Path Description
/ Resume HTML page
/resume.pdf PDF download (Caddy adds Content-Disposition: attachment)

Configuration

Key files (blumeops):

  • ansible/roles/cv/defaults/main.yml — pinned cv_version and tarball URL
  • ansible/roles/cv/tasks/main.yml — sentinel-gated download + extract
  • ansible/roles/caddy/defaults/main.ymlcv service entry (kind: static, download_paths for the PDF)

Key files (cv repo):

  • resume.yaml — Resume content (YAML)
  • template.html — Jinja2 HTML template
  • style.css — CSS with screen/print media queries
  • render.py — uv script runner (PEP 723) that renders YAML → HTML
  • src/cv_ci/main.py — Dagger pipeline (alpine + uv + WeasyPrint)
  • .forgejo/workflows/cv-release.yaml — Release workflow

Release flow

  1. Release a new package from the cv repo (Release CV workflow)
  2. Run the blumeops Deploy CV workflow → bumps cv_version in the ansible role and pushes
  3. Run mise run provision-indri -- --tags cv from gilbert
  4. Purge the Fly.io proxy cache so the new content is fetched
  • cv-on-indri — Operations how-to
  • docs — Similar architecture (Caddy serving a tarball-extracted dir)
  • flyio-proxy — Exposes cv.eblu.me publicly via Tailscale tunnel