CI/CD Pipeline Setup for Small Teams

A plain guide to CI/CD pipeline setup for small teams: what it is, what to start with, what it costs, and who should hold the keys.

8 min read
  • CI/CD
  • DevOps
Two colleagues sit together at a desk in a small Pune office, discussing a laptop screen while a whiteboard with hand-drawn diagrams hangs behind them.

What a CI/CD pipeline actually is

If you run a business that depends on software, you will hear your developers say they need a CI/CD pipeline. This post explains what that means, what a sensible setup looks like for a small team, and which decisions belong to you rather than to the developers. It is written for owners and operators, not engineers.

CI stands for continuous integration. Every time a developer saves a change to the shared code, the system automatically builds the software and runs checks on it. CD stands for continuous delivery or deployment. Once the checks pass, the same system can push the change to a test site or to your live product. A pipeline is simply that chain of automatic steps.

Without a pipeline, releasing usually means one person logs into a server, copies files, runs commands from memory and hopes nothing was missed. That works until that person is on leave, or tired, or leaves the company. A pipeline writes the routine down as instructions the machine follows the same way every time.

A basic pipeline from change to release
  1. Developer saves a change
  2. Software is built automatically
  3. Tests run on the change
  4. A person reviews and approves
  5. Change goes to the live product

For a small team, a CI/CD pipeline setup is not a large project. The goal is modest: fewer broken releases, less dependence on one person, and a clear record of what went live and when.

Does your team need one yet

Not every team needs a pipeline on day one. If one developer is building a first version that only a few people use, a manual release may be fine for a while. The need grows as more people touch the code and more customers depend on it staying up.

  • Releases happen only when one particular person is available.
  • Fixes sometimes go live without anyone running the tests.
  • A change that worked on a developer's laptop breaks on the live site.
  • Nobody can say exactly what version is running in production.
  • Releases are put off because they feel risky or stressful.
  • A new developer takes days to learn how to release.

If two or three of these sound familiar, a basic pipeline will likely pay for itself in calmer releases. If none do, you can wait, but it is cheaper to set up early than to untangle a messy release habit later.

Where a small team should start

Our advice is to keep the first version small. Teams that try to automate everything at once tend to end up with a fragile setup that nobody understands. A modest start that people actually use is better than an ambitious one that is ignored.

  1. Pick one tool Choose the tool that sits next to where your code already lives. If your code is on GitHub, GitHub Actions is the natural option. If it is on GitLab, use GitLab CI/CD. Do not run two.

  2. Automate build and test first Set the pipeline to build the software and run tests on every push or pull request. Do this before automating deployment to the live site.

  3. Turn on branch protection Make it a rule that changes to the main code cannot be merged until the checks pass and a second person has looked at them.

  4. Add a test environment Deploy automatically to a test copy of the product so people can check a change before customers see it.

  5. Automate the live release last Once the team trusts the earlier steps, let the pipeline release to production, ideally with a manual approval click at first.

The setup itself lives in a file inside the code repository. For GitLab, the official documentation says to add a file named .gitlab-ci.yml to the root of your project, and it has a quick start guide for a first pipeline. GitHub Actions similarly uses a workflow file kept in the repository. Because the instructions sit with the code, they are versioned, reviewed and recoverable like everything else. Check the current documentation of your chosen tool before your developers begin, as screens and steps change.

A warning about old tutorials: some older guides still tell readers to prepare an old server version by hand before anything works. You may not need that, depending on how you deploy. If your developer is following a guide that old, ask why.

What it costs and what to ask about

The cost has three parts: the tool, the machines that run the pipeline, and the time of the people who build and maintain it. The third is usually the largest and the one owners forget.

  • Tool and plan

    GitHub Actions has been reported as free for standard GitHub-hosted runners in public repositories. For private repositories, plans include a monthly allowance and then charge per minute of use. Check the current terms on the official GitHub documentation, because plans and rates change.

  • Type of machine

    The allowance is measured in money, so Windows and macOS runs use it up faster than Linux runs. If your product does not need Windows or macOS builds, tell your developers to prefer Linux.

  • Self-hosted runners

    You can run the pipeline on your own machines instead. GitHub announced a charge for this on private repositories and later postponed it, so confirm the current position before planning around it. Your own servers also have a hosting bill and need upkeep.

  • People time

    Someone has to write the pipeline, fix it when it breaks and update it over time. Ask who owns it after setup, and how many hours a month you should expect.

We are not quoting rupee figures here because they depend on your plan, the number of builds and the machine type. Ask your developer or vendor for an estimate based on how many times a day your team saves changes, and ask them to show the current rate from the provider's own pricing page. Also check how GST applies to the subscription with your accountant.

Who holds the keys

A pipeline needs passwords and access keys to reach your servers, databases and other services. This is the part owners most often overlook, and it matters if you ever change developers or vendors.

The common advice is to keep these secrets in the pipeline provider's encrypted secret store and never inside the code repository. Code gets copied, shared and sometimes exposed, and a key committed once is hard to take back.

  1. Keep the account in the company's name The code hosting account and the pipeline should belong to your business, not to a developer's personal login.

  2. Keep a list of what the pipeline can reach Know which servers, databases and third-party services its keys open.

  3. Limit what each key can do A key used only for deploying a website should not also be able to delete your database.

  4. Change keys when people leave When a developer or vendor moves on, remove their access and replace any keys they could see.

If you are hiring outside help for the setup, ask for this list and these ownership arrangements in writing before work starts. It is much easier to agree on this at the beginning than to recover access later.

Measuring it and deciding who builds it

Once a pipeline is running, how do you know it is helping? The DORA research programme has long used four core delivery measures: how often you deploy, how long a change takes to reach customers, how often releases cause failures, and how quickly you recover when one does. It now tracks a fifth, deployment rework rate, as well. DORA's own site is a good place to read about the outcomes it cares about. We suggest looking at these as trends for your own team over a few months. DORA's team has warned against using such metrics to rank teams against each other, so do not turn them into a scoreboard or compare yourself with someone else's published numbers.

On who should build it: if you have a developer who is comfortable with the tooling and has time, a basic pipeline is a reasonable task for them. If your team is stretched, or the product is already in production and risky to change, outside help can shorten the learning curve. Whoever does it, ask for a short written handover covering what the pipeline does, how to run a release, where the secrets live and who to call when it breaks.

What is the simplest CI/CD pipeline setup for a small team?

Pick one tool that matches where your code is hosted, run the build and tests on every change, and require those checks to pass before changes are merged. Add automatic deployment later, once the team trusts the process.

Is CI/CD free?

Some use may be free, depending on the tool, plan and whether your repository is public or private. Private repositories usually have a limited allowance and then charge by usage. Check the current terms on the provider's official pricing page.

Do we need a DevOps engineer for this?

Not necessarily. A basic pipeline can be set up by a developer who reads the tool's documentation. A dedicated person becomes more useful as the product, the team and the number of environments grow.

Where does the pipeline configuration live?

In a file inside your code repository. GitLab uses a file called .gitlab-ci.yml at the project root, and GitHub Actions uses workflow files in the repository.

How do we keep passwords and keys safe in a pipeline?

Store them in the pipeline provider's encrypted secret store, not in the code. Keep accounts in the company's name, limit each key's powers and replace keys when someone leaves.

If you want a second opinion on your release process, or help setting up a first pipeline, tell us how your team works today. Talk to Apna Project (opens in a new tab)

  • CI/CD
  • DevOps
  • GitHub Actions
  • GitLab CI
  • software delivery
  • small teams

Share

Have a project in mind?

Two fields. We'll review it and get back to you with the next steps — no long forms, no calls you didn't ask for.

Not sure how to put it? Start with:

Prefer email? Write to animesh@apnaproject.in