ci: add Hugo blog CI/CD to k3s
Some checks failed
Deploy Hugo Blog to k3s / build-and-deploy (push) Failing after 4m5s

- Enable Gitea Container Registry
- Dockerfile: nginx:alpine serving hugo public/
- Gitea Actions: build & push image + deploy to k3s
- k8s manifests: namespace hugo, deployment, service, ingress
- RBAC: allow runner to update deployments in hugo ns
- .gitignore: add public/ (CI builds it)
This commit is contained in:
luochen570
2026-05-31 03:09:14 +08:00
parent e0d7f07c24
commit d05adc2ffe
22 changed files with 185 additions and 1295 deletions

17
.gitignore vendored Normal file
View File

@@ -0,0 +1,17 @@
# Hugo output - built by CI
/public/
# OS junk
.DS_Store
Thumbs.db
*.swp
*.swo
# Editor
.idea/
.vscode/
*.code-workspace
# Hugo cache
.hugo_build.lock
resources/_gen/