
Self-Hosting Codecov with GitLab Using Terraform: A Practical Deployment Guide
Motivation Since 2023 Codecov provides an official self-hosted repository with Docker Compose examples and some basic guidance. It's a reasonable starting point, but it falls short in a few important ways: Documentation gaps : The official docs cover the happy path (GitHub SaaS + Docker Compose on a single VM) but leave a lot of blanks for anything beyond that. No GitLab self-hosted coverage : Our entire engineering workflow runs on a self-hosted GitLab instance. Getting Codecov to integrate with it: OAuth app creation, the right environment variables, the correct redirect URLs, etc required piecing together information from GitHub issues, the Codecov community forum, Codecov python code itself (to figure out how the env vars should be correctly named), and A LOT of trial and error. None of it is documented in one place. Everything as code : At our company, we don't click through cloud consoles or run one-off scripts to provision infrastructure. Every resource: DNS records, OAuth appli
Continue reading on Dev.to Tutorial
Opens in a new tab

