I could not make sense of this work without research. After three years at CERN, back in Bilbao I decided to work on my own and keep researching and learning. I believe entrepreneurship is the ultimate professional challenge — and, at the same time, an expression of creativity and a claim to freedom.
Zetesis comes from the Greek ζήτησις, inquiry: find the cause before proposing the solution.
GitHub Actions with self-hosted runners on Kubernetes, release-please and Argo CD
LabInfrastructureCI/CDGitOpsKubernetesHarbor
When I merge a change into Zetesis RAG, my AI-agent search engine over private documentation, the code goes through five stops before it reaches production: the tests, a preview environment if I ask for one, the release, the image registry and a pull request in the infrastructure repository. The jobs run on my own machines and almost everything happens on its own, except for what I decide myself.
GitHub Actions is GitHub's automation: every push or pull request starts the jobs defined in the repository. By default they run on GitHub's machines; mine run on my own runners inside the production cluster. They are managed by Actions Runner Controller, GitHub's official controller for Kubernetes, with a single runner group for the whole organisation that scales from zero to three.
Each job brings up its own runner: the controller creates a pod from a template, the pod runs that job and goes away when it finishes. No job inherits anything from the previous one. The template uses my own image, a thin layer over the official one that pins the runner version and adds what my workflows need, such as jq and the GitHub CLI for the last step of the chain. Every runner also has Docker inside, so a job can build images and start containers.
Pinning the version has a catch. Once a newer runner release has been out for a month, GitHub stops sending jobs to the old ones, and it does not tell you: the pods start, receive nothing and shut down. It happened to me in September. Restarting the controller does nothing; you have to build the image with the new version, and since the workflow that builds it runs on those same runners, that day I built it from my own computer.
A pull request is tested against real services
On every pull request, one workflow checks the TypeScript types and runs Biome, the linter. If the change touches the application, another one runs the Vitest tests against the same services I use while coding: it starts PostgreSQL, Typesense, which is the search engine, Redis and the application itself with Docker Compose, applies the migrations and runs the suite. Nothing fakes the database or the search engine. When it is done, it removes the containers and their volumes.
If I also add the preview label, the pull request brings up a whole environment just for itself, with its own database, its own secrets and its own address. Argo CD creates it: it asks GitHub every sixty seconds for pull requests with that label, and uses images built from the PR's commit. When the PR is closed, the environment is deleted and so are its images. How the two halves fit together is in Preview environments for every pull request on Kubernetes, deleted automatically.
Every commit says whether it is a feature or a fix
Commit messages follow the Conventional Commits convention: they start with a type and, in brackets, the part they touch. feat(server): … is a new feature, fix(mcp): … is a fix, and docs: or chore: do not change the version.
release-please, a tool from Google, reads those commits every time something lands on main and keeps a release pull request open. In it, it prepares the next version of each component with its changelog. This repository has five: the website, the MCP server for AI assistants, the agent runtime, the document processor and the Helm chart that deploys them.
A feature bumps the middle number and a fix bumps the last one. While a component is still on 0.x, as all of mine are, both bump the last one, because that is what the configuration says (bump-patch-for-minor-pre-major).
The brackets, on the other hand, do not decide which component a commit belongs to: release-please decides that from the folder it touches. I learned it with a fix(documents-worker) that only updated a shared submodule. It bumped the agent runtime, which had an affected file, and the document processor's image was never rebuilt. Now every component that depends on that submodule keeps the revision it uses in its own folder, so the change lands where it should.
When I accept the release pull request, release-please creates a tag per component, such as server-v0.10.12 or helm-v0.4.51, and a GitHub release with its notes: the features and the fixes, each with its commit.
The images and the chart go to Harbor
In that same workflow, every component with a new version builds its image and pushes it to Harbor, my image registry. The chart is packaged and goes to the same place as an OCI artifact. Only CI writes to Harbor, with a robot account that can publish; the clusters pull with another one that can only read. Why I run my own registry and how I organise it is in A Harbor of our own for the cluster's images and charts.
Harbor is copied every night to the other house. At three, CloudNativePG, the operator that runs PostgreSQL in the cluster, takes a full backup of its database, which also ships its change log continuously; at four, VolSync copies the image store. How those backups work is in Backing up Kubernetes and Docker with restic, K8up and MinIO.
CI opens a pull request in the infrastructure repo and I accept it
The last job of the workflow clones the infrastructure repository, updates the production values file with the image tags and the chart version that have just been released, and opens a pull request with that change. CI opens it on its own, as soon as the images are out.
Until I accept it, production does not change. The pull request shows exactly which tags go up, and it is the moment to reread the release notes or try the preview if there was one. When I merge it, Argo CD sees the change in git and deploys it in two waves: first the secrets and the infrastructure, then the chart with the new tags, which it pulls from Harbor.
On 30 October, about seven minutes went by between my accepting the release pull request and CI opening the one in the infrastructure repository, without me touching anything. Rolling back means reverting that commit, because the previous version is still in Harbor.
Two approvals and the rest automatic
Across the whole chain I accept two pull requests: the release one in the application repository and the tags one in the infrastructure repository. The tests, the previews, the images, the backups and the deployment run on their own. Nothing reaches production without my approval.