borg offsite backup included so Maintenance actions (purge and compact)
This commit is contained in:
82
README.md
82
README.md
@@ -4,74 +4,30 @@ Welcome to public repository of my [Git Server](https://git.limbosolutions.com)
|
||||
|
||||
Using [gitea](https://git.limbosolutions.com/kb/gitea) as git server.
|
||||
|
||||
## gitea helm chart
|
||||
- [gitea - helm chart](#gitea---helm-chart)
|
||||
- [add chart](#add-chart)
|
||||
- [update chart](#update-chart)
|
||||
- [Upgrade / Install](#upgrade--install)
|
||||
|
||||
## gitea - helm chart
|
||||
|
||||
### add chart
|
||||
|
||||
``` yaml
|
||||
helm repo add gitea-charts https://dl.gitea.com/charts/
|
||||
```
|
||||
|
||||
### update chart
|
||||
|
||||
``` yaml
|
||||
helm repo update
|
||||
helm upgrade --install gitea gitea-charts/gitea -f ./values.yaml -f ./values.private.yml --namespace=git-limbosolutions-com
|
||||
```
|
||||
|
||||
## Git Action
|
||||
### Upgrade / Install
|
||||
|
||||
## runners
|
||||
|
||||
## lxc container - proxmox
|
||||
|
||||
Template : debian-12-turnkey-core_18.1-1_amd64.tar.gz
|
||||
|
||||
- Unprivileged contrainer - Yes
|
||||
- Nesting -Yes
|
||||
|
||||
```bash
|
||||
# setup new lxc container with docker
|
||||
|
||||
apt update -y
|
||||
apt upgrade -y
|
||||
curl -fsSL https://get.docker.com -o get-docker.sh
|
||||
sh ./get-docker.sh
|
||||
```
|
||||
|
||||
### act tunner
|
||||
|
||||
```bash
|
||||
nano setup-act-runners.sh
|
||||
```
|
||||
|
||||
```bash
|
||||
#/bin/bash
|
||||
|
||||
setup(){
|
||||
|
||||
CONTAINER_NAME=${OWNER}_act_runner
|
||||
|
||||
docker container stop $CONTAINER_NAME
|
||||
docker container rm $CONTAINER_NAME
|
||||
|
||||
docker run \
|
||||
--restart=unless-stopped \
|
||||
-v ${CONTAINER_NAME}_data:/data \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
-e GITEA_INSTANCE_URL=${INSTANCE_URL} \
|
||||
-e GITEA_RUNNER_REGISTRATION_TOKEN=${REGISTRATION_TOKEN} \
|
||||
-e GITEA_RUNNER_NAME=${OWNER}_ubuntu_default \
|
||||
--name ${CONTAINER_NAME} \
|
||||
-d gitea/act_runner
|
||||
}
|
||||
|
||||
INSTANCE_URL=https://git.limbosolutions.com
|
||||
OWNER=kb
|
||||
REGISTRATION_TOKEN=???
|
||||
setup
|
||||
|
||||
|
||||
OWNER=????
|
||||
REGISTRATION_TOKEN=???
|
||||
setup
|
||||
|
||||
```
|
||||
|
||||
```bash
|
||||
chmod +x setup-act-runners.sh
|
||||
./setup-act-runners.sh
|
||||
``` yaml
|
||||
helm upgrade --install gitea gitea-charts/gitea \
|
||||
--values ./gitea/values.yaml \
|
||||
--values ./gitea/values.private.yaml \
|
||||
--namespace=git-limbosolutions-com
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user