Files
blog-ahmza-com/README.md
T

43 lines
1.0 KiB
Markdown
Raw Normal View History

2023-03-14 17:59:48 +00:00
# Blog
## What
2024-06-05 13:13:24 +01:00
Repository for the blog
2023-04-01 22:01:49 +01:00
Features of using gitlab:
- version control
- CI/CD pipelines
- gitlab container image repository
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
2023-03-14 17:59:48 +00:00
## Why
2023-11-10 20:59:31 +00:00
# Pros of static sites
* Security
* Reliability
* Speed
* Scalability
2024-06-05 13:13:24 +01:00
* Low Resource overhead
2023-11-10 20:59:31 +00:00
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
2023-04-01 22:01:49 +01:00
2023-03-14 17:59:48 +00:00
## How
2024-06-05 13:13:24 +01:00
* Hugo compiles markdown into static files.
* Gitlab CI/CD builds the docker image.
* Kubernetes Cluster serves static files.
2023-11-10 20:59:31 +00:00
2023-03-14 17:59:48 +00:00
## Do list
2024-06-05 13:13:24 +01:00
[] ...
2023-03-14 17:59:48 +00:00
## Notes
2023-11-10 20:59:31 +00:00
# When Pulling / Cloning
``` bash
git clone --recurse-submodules https://gitlab.com/ahmza/blog
```
# Update the theme
``` bash
git submodule update --remote --merge
```