A static pages server for Gitea
docker pull ghcr.io/deadnews/gitea-pagesSee compose.dev.yml for a Compose reference.
| Variable | Default | Description |
|---|---|---|
GITEA_PAGES_SERVER |
Gitea server URL | |
GITEA_PAGES_TOKEN |
Gitea API read token | |
GITEA_PAGES_BRANCH |
gh-pages |
Branch to serve pages from |
GITEA_PAGES_ADDR |
:8000 |
Listen address |
Deploy with any CI step that pushes to the pages branch:
- name: Deploy Docs
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
force_orphan: true
publish_dir: siteHealth check endpoint.
curl http://127.0.0.1:8000/healthServes static files from the pages branch of the specified repository.
# Serves index.html from the pages branch of owner/repo
curl http://127.0.0.1:8000/myorg/myrepo/
# Serves a specific file
curl http://127.0.0.1:8000/myorg/myrepo/assets/style.css