Forgejo-installation til OS2
- CSS 56.4%
- Go Template 43.6%
| branding | ||
| oldies | ||
| .gitignore | ||
| 00-namespace.yaml | ||
| 01-secrets.yaml | ||
| 02-branding-configmap.yaml | ||
| LICENSE | ||
| README.md | ||
| values.yaml | ||
os2code
Filer til deployment af os2code
Installation
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/latest/download/cert-manager.yaml
kubectl apply -f cluster-issuer.yaml
kubectl apply -f 00-namespace.yaml
kubectl apply -f 01-secrets.yaml # contains admin secrets
kubectl apply -f 02-branding-configmap.yaml
helm install forgejo \
--namespace os2code \
-f values.yaml \
oci://code.forgejo.org/forgejo-helm/forgejo
Opdatering
Hvis du har opdateret noget i values.yaml, skal du køre følgende:
helm upgrade forgejo \
--namespace os2code-beta \
-f values.yaml \
oci://code.forgejo.org/forgejo-helm/forgejo
Har du opdateret branding, kør følgende:
kubectl create configmap forgejo-branding \
--from-file=branding/templates/custom/header.tmpl \
--from-file=branding/templates/home.tmpl \
--from-file=branding/templates/home_forgejo.tmpl \
--from-file=branding/css/forgejo-overrides.css \
--from-file=branding/css/variables.css \
--from-file=branding/css/login.css \
--from-file=branding/img/logo.svg \
--namespace os2code \
-o yaml --dry-run=client | kubectl replace -f -
Efterfulgt af:
kubectl rollout restart deployment forgejo -n os2code-beta
Du bør også efterfølgende opdatere filen her:
kubectl get configmap forgejo-branding -n os2code -o yaml > 02-branding-configmap.yaml