aa43afbffb236867c63ed397573c4474aa882f29
packages
Gitea Actions-based Debian package builder for custom apt repository.
Structure
packages/
├── .gitea/workflows/build.yml # CI pipeline
├── scripts/publish.sh # manual publish helper
└── v2ray/
├── nfpm.yaml # package definition
└── scripts/
├── postinstall.sh
└── preremove.sh
Usage
Automatic build
Push changes to v2ray/ directory → triggers build automatically.
Manual build with specific version
Gitea → Actions → Build packages → Run workflow → specify version.
Add repository on servers
curl https://git.nakolenke.org/api/packages/nakolenke-pub/debian/repository.key \
-o /etc/apt/keyrings/nakolenke.asc
echo "deb [signed-by=/etc/apt/keyrings/nakolenke.asc] \
https://git.nakolenke.org/api/packages/nakolenke-pub/debian trixie main" \
> /etc/apt/sources.list.d/nakolenke.list
apt update
apt install v2ray
Secrets
Set GITEA_TOKEN in repository secrets (Settings → Secrets).
Token needs package scope.
Adding new package
- Create directory
<package>/ - Add
nfpm.yaml - Add
scripts/postinstall.shandscripts/preremove.sh - Add job to
.gitea/workflows/build.yml
Description
Languages
Shell
96.2%
Makefile
3.8%