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.
- [ ] Metrics
- [ ] Logs
- [ ] Alerts
- [ ] On-Call Schedule Management docs
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:
- Install GitBook
npm install gitbook-cli -g
- Fetch GitBook's latest stable version
gitbook fetch latest
- Preview your project:
gitbook serve
- Add content
- Generate the website:
gitbook build
(optional) - Push your changes to the master branch:
git push
Read more at GitBook's documentation.
Troubleshooting
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