c4k-forgejo/doc/Upgrading.md

21 lines
639 B
Markdown
Raw Normal View History

# Upgrading process
## adhoc (on kubernetes cluster)
Make sure you've got your gitea admin credentials.
``` bash
kubectl edit configmap gitea-env
# make sure INSTALL_LOCK under security is set to true to disable the installation screen
# save and exit
kubectl edit deployments gitea
# search for your current gitea version, e.g. 1.17.0
# replace with new version
# save and exit
kubectl scale deployment gitea --replicas=0
kubectl scale deployment gitea --replicas=1
```
You now should be logged into the admin account with all repos visible.
You may want to update your c4k-gitea resources to reflect the changes made on the cluster.