Deb Package Template
Quick Start
- Fork/copy this template
- Edit
debian/control— set Package, Version, Description - Add your files (scripts in
usr/local/bin/, systemd units inetc/systemd/system/, etc.) - Add Gitea secrets:
KUBECONFIG: base64-encoded kubeconfig for pkg-repo-ci SA
- Tag a release:
git tag v1.0.0 && git push --tags - CI builds .deb and publishes to repo.n0ball.tw
Package Structure
your-package/
├── .gitea/workflows/build-deb.yaml # CI pipeline (do not modify)
├── debian/
│ ├── control # Package metadata
│ ├── install # (optional) file install mapping
│ ├── postinst # (optional) post-install script
│ └── changelog # (optional) changelog
├── usr/local/bin/ # Scripts
├── etc/systemd/system/ # Systemd units
└── etc/ # Config files
Client Setup
curl https://repo.n0ball.tw/pubkey.gpg | gpg --dearmor | sudo tee /etc/apt/keyrings/n0ball.gpg > /dev/null
echo "deb [signed-by=/etc/apt/keyrings/n0ball.gpg] https://repo.n0ball.tw/debian trixie main" | sudo tee /etc/apt/sources.list.d/n0ball.list
sudo apt update
sudo apt install your-package
Description