forgejo/README.md

31 lines
1.5 KiB
Markdown
Raw Normal View History

2021-04-08 11:29:16 +02:00
# Gitea - Ansible Role
This role covers deployment, configuration and software updates of Gitea/Forgejo. This role is released under MIT Licence and we give no warranty for this piece of software. Currently supported OS - Debian.
2021-04-08 11:29:16 +02:00
You can deploy test instance using `Vagrantfile` attached to the role.
`vagrant up`
`ansible-playbook -b Playbooks/gitea.yml`
Then you can then access gitea from your computer on `http://192.168.33.14:3000`
# Gitea or Forgejo
This role allows for deployment of gitea and forgejo. By default the role deploys forgejo and this is the flavor that is supported and maintained. Installing Gitea using the role is possible however starting from version 1.18.2 is no longer maintained by Disroot team.
To switch to gitea, update following variables in your Playbook/host_vars:
```
gitea_flavour: 'gitea'
gitea_version: '1.18.2'
gitea_arch: 'linux-amd64'
gitea_download_url: 'https://github.com/go-gitea/gitea/releases/download/v{{ gitea_version }}/gitea-{{ gitea_version }}-{{ gitea_arch }}'
```
2021-04-08 11:29:16 +02:00
## Playbook
The playbook includes postgresql role and deploys entire stack needed to run Gitea. Additional roles are also available in the Ansible roles repos in git.
2021-04-08 11:17:12 +02:00
## Customization
Check https://docs.gitea.io/en-us/customizing-gitea/
You can deploy custom themes with this role. To do so, check `gitea_custom_themes` var and add your theme's repo address there. The root path of the theme repo must have a `css` folder that includes the theme's css files. You can check https://git.disroot.org/Disroot-themes/forgejo-beetroot as an example.