CI/CD

  • Most CI/CD processes are usually managed with git:
There are a handful of git workflow patterns for DevOps (Image Source: The book!)

CI/CD processes are “triggered” by git changes (i.e. when code changes in test)

  • GitHub is the leading provider for CI/CD via GitHub Actions (GHA)

How Does it Work?

You write code that tells the CI/CD tool to:

  1. Build a clean, empty server on the cloud
  2. Copy your code with new changes and the bare-minimum requirements for it to run
  3. Install and run any tests as specified; if tests fail, stop immediately and inform the developer
  4. Accept the new changes and “push” to production (automatically copy the changes to the live product)

r-lib 📦 is your friend for getting started with GHA with R — See here