This repository contains scripts for Gitea.
Run Gitea
./Run-Gitea.ps1If this is the first time running GoCD:
- Open Gitea at http://localhost:3000
- Set
Server Domaintohost.docker.internal - Set
Gitea Base URLtohttp://host.docker.internal:3001/(needed for webhooks to work) - Press
Install Giteaand wait for the login page - Click
Register now - Register a new user
- From
User > Settings > Applicationsgenerate 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.inifile to include these lines:[webhook] ALLOWED_HOST_LIST = * - Restart Gitea