This repository contains scripts for Gitea.
Run Gitea
./Run-Gitea.ps1
If this is the first time running GoCD:
- Open Gitea at http://localhost:3000
- Set
Server Domain
tohost.docker.internal
- Set
Gitea Base URL
tohttp://host.docker.internal:3001/
(needed for webhooks to work) - Press
Install Gitea
and wait for the login page - Click
Register now
- Register a new user
- From
User > Settings > Applications
generate a new token for Jenkins with the following minimum permssions- orgnaisation
Read
- repository
Read and Write
- user
Read
- orgnaisation
- Copy the access token that appears on the page
For a webhook to work the target must be allowed.
- Edit the
data/gitea/conf/app.ini
file to include these lines:[webhook] ALLOWED_HOST_LIST = *
- Restart Gitea