More detail on Gitea configuration

This commit is contained in:
2025-05-05 17:34:12 +00:00
parent d112694483
commit 3ab0f59a57

View File

@ -36,9 +36,7 @@ This is the base theme for MedLab Hugo projects. This theme provides a starting
## GitLab CI/CD
This project includes automated CI/CD pipelines that handle building and deploying your Hugo site. The pipeline automatically builds your site when changes are pushed and deploys it to a Surfer instance.
Normally the site will deploy within an hour. To force deployment, in Gitea, go to the repository's settings and press the "synchronize now" button (two arrows in a circle) under Mirror Settings.
This project includes automated CI/CD pipelines that handle building and deploying your Hugo site. The pipeline automatically builds your site when changes are pushed to the `publish` branch and deploys it to a Surfer instance.
### Pipeline Overview
- **Build Stage**: Compiles Hugo site with optimizations
@ -59,7 +57,8 @@ We will use Gitea (git.medlab.host) as the external repository and GitLab for CI
2. **Configure Gitea Repository Mirroring**
- From your Gitea repo go to: `Settings > Repository > Mirror Settings`
- Add your GitLab repository URL
- Enable push mirroring
- Add GitLab user credentials under Authorization
- Check "Sync when commits are pushed" and disable Mirror Interval
3. **Set Required Variables on GitLab**
- Get an access token from the Surfer server by going to `/_admin` and getting the "Access Tokens" dialog from the three-dot menu