— How we work

CI/CD for a small team: ship a known build and rehearse recovery

Build a small-team CI/CD pipeline around reproducible artifacts, preview verification, compatible migrations and a recovery plan someone can execute.

2 min readUpdated 2026-11-05By Aryan Singh Pokharia, Founding Member & Lead Developer
Lines of code on a dark terminal, representing CI/CD pipelinesAptixLabs · 2026-05-02

A useful CI/CD pipeline should identify the build being released, show which checks passed and provide a way to recover if the release fails. Start with the smallest pipeline that demonstrates those properties for your product. Adding more jobs without deciding what blocks a release can make the process slower without making it clearer.

Build once, verify that artifact, then promote it

For a static web release, create the production files, run the appropriate checks and publish them to a preview environment. Verify the pages and assets that matter, then promote the same artifact. Rebuilding after verification can introduce a different dependency resolution or configuration. Record the commit and artifact identity so a later incident can be tied to the release.

AptixLabs uses this distinction in its own website workflow: a Vite build produces prerendered pages, a sitemap and article chunks. Browser checks inspect readable content without JavaScript, metadata, links and hydration. Those are checks for this site’s failure modes; a mobile app or transactional API needs a different acceptance set.

Example release gates for a web and API product
GateEvidence before releaseRecovery question
Source and buildKnown commit, dependency lockfile and successful compilationCan the previous artifact still be deployed?
Product behaviorCore task and meaningful failure paths passCan an operator detect a failed task?
Database changeOld and new clients remain compatible during rolloutWould rolling back code leave an incompatible schema?
HostingRequired routes and hashed assets resolve from the previewCan the same files be promoted without rebuilding?
MeasurementProduction events work; preview visits are excludedWill validation pollute customer reports?

Separate code rollback from data recovery

Returning to yesterday’s application does not undo a destructive migration or an external payment. Prefer changes that allow old and new versions to coexist during rollout. Back up and rehearse recovery where data loss is possible. For an irreversible operation, write the compensating or support procedure before calling the release reversible.

Keep secrets and approval rules tied to the environment

GitHub Actions environments can control deployment access and protection rules. Choose rules that fit the repository and available plan, and verify the branch and secret boundaries. A preview should use the intended test dependencies rather than accidentally writing customer records or sending real notifications.

GitHub: deployment environments

Rehearse one failed release

  1. Deploy a harmless failing candidate to a test environment.
  2. Confirm the check that should reject it actually fails.
  3. Restore the previous verified artifact using the runbook.
  4. Verify the core user task and record the operator’s missing instructions.

Progressive feature-flag rollout and rollback

Mobile app releases need runtime and API compatibility

Is redeploying the old code a complete rollback plan?

Only when the old code remains compatible with current data and dependencies. Database changes, queued work and external actions need their own recovery or compensation plan.

What should a small team automate first?

Automate the checks that identify a broken build or failed core task, then verify the exact artifact and its deployment environment. Add checks when a real failure mode justifies them.

— Keep reading

Related reading

How we work

Choose tests around failures that would hurt a customer.

Prioritise identity boundaries, critical writes and failure recovery; use the smallest test that can verify each risk.

Read article
How we work

App store submission checklist: make the release reviewable

Prepare review access, privacy disclosures, subscription scenarios and release evidence before submitting an iOS or Android app.

Read article
The stack

A startup stack with clear boundaries: React Native, FastAPI and PostgreSQL.

How to divide a startup product between a typed mobile client, a Python API and relational storage, using the documented UltraFit360 architecture.

Read article
The stack

Feature flags for SaaS: ship a release you can stop

Plan feature-flag releases with stable cohorts, stop conditions and cleanup. Understand which failures a flag can stop and which data changes need repair.

Read article
The stack

Expo OTA update rollback planning

Plan Expo OTA recovery around runtime compatibility, staged release and known-good artifacts. Test a rollback before relying on it during an incident.

Read article
The stack

Mobile app API backward compatibility

Keep backend changes compatible with older mobile clients. Define capability checks, supported versions and explicit recovery for obsolete app builds.

Read article
Infrastructure

PostgreSQL migration lock budgets: fail clearly instead of waiting indefinitely

Design PostgreSQL migration lock budgets with separate wait and execution deadlines, a two-session lab and explicit retry and rollback evidence.

Read article
Infrastructure

GitHub OIDC to Google Cloud: draw the deployment trust boundary first

Draw GitHub-to-Google-Cloud OIDC trust with repository/ref conditions, short-lived exchange and a permitted/denied deployment worksheet.

Read article
Back to all insights

Need help with b2b saas development for connected customer workflows?

Tell us about your product, existing stack and the problem you need to solve. We can discuss integration scope, implementation tradeoffs and a practical first milestone.

Start a conversation