1
0
mirror of https://gitlab.com/packaging/gitea synced 2024-12-18 08:03:29 +00:00
gitea_packaging/README.md
morph027 882c7a05d3
add label/origin/suite to repo
Signed-off-by: morph027 <stefan.heitmueller@gmx.com>
2022-09-04 10:40:16 +02:00

45 lines
1014 B
Markdown

# [Gitea](https://gitea.io) Debian/Ubuntu Packages
Packages are built using [fpm](https://github.com/jordansissel/fpm/) by pushing released tags and repo is created using [Gitlabs static pages](https://morph027.gitlab.io/blog/repo-hosting-using-gitlab-pages/).
Minimum install and update tests are in place to prevent upload of broken packages.
### Add repo signing key to apt
```
sudo curl -sL -o /etc/apt/trusted.gpg.d/morph027-gitea.asc https://packaging.gitlab.io/gitea/gpg.key
```
### Add repo to apt
```
echo "deb https://packaging.gitlab.io/gitea gitea main" | sudo tee /etc/apt/sources.list.d/morph027-gitea.list
```
### Install
```
sudo apt-get update
sudo apt-get install gitea morph027-keyring
```
### Start
```
systemctl enable --now gitea
```
## Extras
### unattended-upgrades
To enable automatic upgrades using `unattended-upgrades`, just add the following config file:
```bash
cat > /etc/apt/apt.conf.d/50gitea <<EOF
Unattended-Upgrade::Allowed-Origins {
"morph027:gitea";
};
EOF
```