dev3 ·
We deploy by SSH-ing into a server and pulling the latest code. It has gone wrong a few times. What is a simple, sensible CI/CD setup for a small team?
0
DEV3 Developer Forum
Every post is reviewed first. Usually reviewed within 24 hours.
We deploy by SSH-ing into a server and pulling the latest code. It has gone wrong a few times. What is a simple, sensible CI/CD setup for a small team?
Short answer: run tests automatically on every pull request, and deploy from the main branch through a scripted, repeatable process with an easy rollback. Start with the smallest version of that.
On every push and pull request, a CI service should:
Make these checks required before merging into main.
A minimal pipeline, written for GitHub Actions, looks like this:
name: ci
on: [pull_request, push]
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
After checks pass on main:
Automate the manual steps you already do, one at a time, starting with the test run.