Urgent.News

What's breaking now, across thousands of outlets.

Tech

A Simple CI/CD Pipeline That Works

I used to overcomplicate CI/CD. I'd spend days wiring up Jenkins, configuring agents, and debugging YAML that nobody understood. Then I realized: a simple pipeline that works beats a fancy one that doesn't. Here's the setup I use for most projects now. The Core Idea A CI/CD pipeline has three jobs: Run tests on every push. Build an artifact if tests pass. Deploy that artifact to a server. That's…

The author shares their experience of simplifying CI/CD processes. They used to spend days configuring Jenkins and debugging YAML files. The author now uses a simple pipeline that includes three main jobs: running tests on every push, building an artifact if tests pass, and deploying that artifact to a server. They use GitHub Actions for the pipeline, Docker to package the app consistently, and a single VPS for deployment.

The total cost is around $5/month. The author provides a step-by-step guide on setting up the Dockerfile, GitHub workflow, and making the process safe. They recommend tagging images with the commit SHA, adding a healthcheck to the Dockerfile, running migrations before swapping containers, and keeping a previous image for easy rollback.

The author also notes that they skipped more complex features like Kubernetes, blue/green deploys, and a staging environment. The main point is that the best pipeline is the one you understand thoroughly. This simple pipeline is around 60 lines of YAML and can be understood and debugged quickly, ensuring that code is deployed to production on every push.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

More from Tuesday 15 September →