CI Calisthenics: GitBook website using GitLab with Netlify.

CI Calisthenics

Let's work out a bunch of different CI features, all in one project. This is served via Netlify at https://practical-hodgkin-f96037.netlify.app/ as well as https://ci.brie.dev.

  • [x] SAST
  • [x] Push to Container Registry
  • [ ] Push to Package Registry
  • [ ] Customize rulesets for SAST
  • [ ] Use Environments
  • [ ] Set up GitLab Pages
  • [x] Deploy to Netlify

Container Registry

I want to set up a Grafana server. I am building the container for it in the pipeline for this project and storing it in Container Registry.

  • [x] Set up a clean up policy

Resources

Operations

The Operations stuff is pretty cool. Let's include that.

Alerts

First, I will connect a third-party service as a new integration.

On-Call Schedules

Let's create an on-call schedule for a small team that needs to cover 5p-10p, Monday-Friday, all in the same time zone. The name of the schedule is Help Desk After-Hours. I have 2 rotations.

Alerts from the project will be routed according to the schedule.

Building locally

To work locally with this project, you'll have to follow the steps below:

  1. Install GitBook npm install gitbook-cli -g
  2. Fetch GitBook's latest stable version gitbook fetch latest
  3. Preview your project: gitbook serve
  4. Add content
  5. Generate the website: gitbook build (optional)
  6. Push your changes to the master branch: git push

Read more at GitBook's documentation.

Troubleshooting

  1. CSS is missing! That means two things:

    Either that you have wrongly set up the CSS URL in your templates, or your static generator has a configuration option that needs to be explicitly set in order to serve static assets under a relative URL.


Forked from @virtuacreative

results matching ""

    No results matching ""