2020-06-21 06:35:34 +00:00
# [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.
2020-04-12 12:08:21 +00:00
### Add repo signing key to apt
2020-06-21 06:35:34 +00:00
```
2020-04-12 12:08:21 +00:00
sudo curl -sL -o /etc/apt/trusted.gpg.d/morph027-gitea.asc https://packaging.gitlab.io/gitea/gpg.key
```
### Add repo to apt
2020-06-21 06:35:34 +00:00
```
2022-01-17 08:40:17 +00:00
echo "deb https://packaging.gitlab.io/gitea gitea main" | sudo tee /etc/apt/sources.list.d/morph027-gitea.list
2020-04-12 12:08:21 +00:00
```
2020-06-21 06:35:34 +00:00
### Install
```
sudo apt-get update
2022-08-28 14:58:35 +00:00
sudo apt-get install gitea morph027-keyring
2020-06-21 06:35:34 +00:00
```
### Start
```
2022-08-13 20:26:48 +00:00
systemctl enable --now gitea
2020-06-21 06:35:34 +00:00
```
2022-09-04 08:40:16 +00:00
## 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
```