CI/CD: How to Ship New Versions Without Stress – Even on a Friday
Deploying by hand over FTP or SSH is slow and risky. Here is what CI/CD is, what a simple pipeline looks like, how to deploy without downtime and how to roll back quickly when something goes wrong.
Pipoline Team4 min read
“We don’t deploy on Fridays.” Many companies follow this rule, and for good reason: shipping a new version is a manual process full of steps that are easy to forget, and when something breaks, nobody wants to spend the weekend fixing it.
The problem isn’t Friday, though. The problem is that deploying is risky. CI/CD turns it into a boring, repeatable routine.
What CI/CD means
- CI – Continuous Integration: every code change automatically triggers a build and tests. A bug is found minutes after it was introduced, not a week later at deployment.
- CD – Continuous Delivery / Deployment: a verified version is automatically prepared for release, or deployed straight to test and production environments.
The whole path from a code change to a running application is written down in a single file and carried out by a machine – the same way every time.
What manual deployment looks like
If any of this sounds familiar, CI/CD will save you time and stress:
- files are uploaded to the server over FTP or
scp, - before deploying, someone “quickly tests” the main pages,
- only one person knows the procedure, and it lives in their notes,
- production runs a version that nobody can match exactly to the code in Git,
- rolling back means hunting for a backup and hoping.
A simple pipeline in practice
This is what a basic GitHub Actions pipeline can look like. It runs the tests on every push and, if it’s the main branch and the tests pass, deploys the new version:
name: CI/CD
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm test
deploy:
needs: test
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v4
- run: ./scripts/deploy.sh
Deployment only runs when the tests pass, and only from the main branch. The production environment can require approval from a specific person, and credentials are stored in the repository settings, not in the code. The same principle works in GitLab CI, Bitbucket and other tools.
What a good pipeline should do
Test
Automated tests are the foundation. You don’t need full coverage to start – even a few tests for the critical parts (sign-in, ordering, payment) catch most nasty surprises.
Check quality and security
A linter, a formatting check, scanning dependencies for known vulnerabilities and, if your infrastructure is written as code, checking that too.
Build one artefact
The application is built once – for example as a Docker image with a unique version – and that same artefact moves through the test environment all the way to production. What you tested is what you ship.
Deploy without downtime
The new version starts alongside the old one, and traffic switches over only once the new one responds correctly. Users notice nothing. For containers, Amazon ECS or Kubernetes can do this; for simpler setups, a well-written script is enough.
Make rollback quick
Every version is tagged, so going back to the previous one is a single click or command – not a hunt for a backup. If a new version changes the database, design that change so the previous version can still work with it.
Smaller changes, more often
One of the biggest benefits of CI/CD isn’t the automation itself but the change in how you work. When deploying is cheap and safe, you deploy more often and in smaller pieces. A small change is easy to review, test and roll back. A big monthly release bundles dozens of changes at once – and when something breaks, you are looking for a needle in a haystack.
Where to start
- Code in Git – if it isn’t there yet, this is step one.
- Automatic build and tests on every pull request – even if there are only a few tests so far.
- Automatic deployment to a test environment – the team gets used to it, and problems with the process come to light.
- Production with approval – one-click deployment after review.
- Monitoring after deployment – so you know about a problem before your customers do.
The first steps can be done in a few days, and the rest follows gradually. The result: Friday is a day like any other.
⚙️ Want to deploy with a single click?
As part of our DevOps services we design and set up CI/CD pipelines for your projects – from tests and builds to zero-downtime deployment and rollback to the previous version. Everything stays in your repository and is documented. Get in touch – the first consultation is free and comes with no obligation.