48 lines
1.0 KiB
Markdown
48 lines
1.0 KiB
Markdown
# Blog
|
|
|
|
## What
|
|
This repository is where the blog is stored.
|
|
Features of using gitlab:
|
|
- version control
|
|
- CI/CD pipelines
|
|
- gitlab container image repository
|
|
|
|
Github Repo simply becasue TINA !!
|
|
|
|
The CI/CD pipeline builds the blog into both arm64 so I can host the site on my [Pi cluster](https://blog.ahmza.com/posts/building-a-docker-swarm-with-pis/) as well as amd64 to host on other platforms i.e eks
|
|
|
|
## Why
|
|
|
|
# Pros of static sites
|
|
* Security
|
|
* Reliability
|
|
* Speed
|
|
* Scalability
|
|
* Low Resource requirement
|
|
|
|
I had rack mounted servers running my website and decided that the power hungry machines were consuming way too much power
|
|
so I decided to migrate to a cluster of raspberry pis which you can find a post on my site. A static site made the most sense
|
|
for reasons mentioned above
|
|
|
|
## How
|
|
|
|
Simply put
|
|
* Hugo
|
|
* Gitlab CI/CD to build the image
|
|
* Kubernetes Cluster to host
|
|
|
|
## Do list
|
|
|
|
## Notes
|
|
|
|
# When Pulling / Cloning
|
|
``` bash
|
|
git clone --recurse-submodules https://gitlab.com/ahmza/blog
|
|
```
|
|
|
|
# Update the theme
|
|
``` bash
|
|
git submodule update --remote --merge
|
|
```
|
|
|