This article addresses common DNS resolution problems encountered by GitLab CI runners using Kaniko in a Kubernetes environment, particularly when behind a pfSense firewall.
This guide outlines how to structure a GitLab CI/CD pipeline to build Docker images, run tests, and perform security analysis using Trivy before pushing to a registry.
A complete CI/CD workflow that builds a Docker image on every push to main, pushes it to GitHub Container Registry (GHCR) and SSH-deploys to a production server using docker compose pull && up.