Gitea Debian Repository
This repository provides Debian packages for Gitea, built for amd64 and arm64.
Each Gitea release is downloaded from the official release artifacts, its GPG signature and SHA256 checksum are verified, and the result is packaged as a .deb by build.sh in this repository.
Client Setup
Packages are published in the Debian package registry of this Gitea instance. Clients must run Debian stable: new versions are published into the distribution of the Debian stable release current at build time.
As root:
curl -fsSL https://git.24unix.net/api/packages/tracer/debian/repository.key -o /etc/apt/keyrings/24unix-gitea.asc
echo "deb [signed-by=/etc/apt/keyrings/24unix-gitea.asc] https://git.24unix.net/api/packages/tracer/debian $(. /etc/os-release; echo $VERSION_CODENAME) main" > /etc/apt/sources.list.d/24unix-gitea.list
apt update
apt install gitea
The installed service is named gitea.
The .deb files in this repository are the archive of every version built; the old trusted=yes source pointing at /raw/branch/master/ is no longer supported.
Upgrades
New Gitea releases are packaged shortly after upstream publishes them; a regular apt upgrade keeps the installation current.
Building
This repository builds its own packages: build.sh writes the amd64 and arm64 .deb files into the repository root (stored with Git LFS), commits and pushes them, creates the Gitea release and uploads both files to the Debian package registry.
Requirements
curlgit-lfsjqwgetgpg(with the Gitea release key, Teabot7C9E68152594688862D62AF62D9AE806EC1592E2, in the keyring)xz-utilsdpkg-devapt-utilsgit
Usage
Build the latest Gitea release:
./build.sh
Build a specific version:
./build.sh 1.26.1
or:
GITEA_VERSION=1.26.1 ./build.sh
Rebuild an already published upstream version (packaging changes only), e.g. as 28.2.0-2:
PKG_REVISION=2 ./build.sh 28.2.0
Build and commit locally without pushing, releasing or uploading:
NO_PUBLISH=1 ./build.sh
The script downloads the Linux amd64 and arm64 release artifacts, verifies their GPG signatures and SHA256 checksums, builds the .deb packages, regenerates Packages, Packages.gz and Release, and commits. It then pushes, creates the Gitea release and uploads to the registry. If the version is already built it prints SKIP: and only catches up on whatever is missing (unpushed commit, release, registry upload); wrapper.sh sends no mail for those runs with notify=success.
Systemd Timer
Install and enable the nightly build timer:
cp systemd/gitea-build.service /etc/systemd/system/
cp systemd/gitea-build.timer /etc/systemd/system/
systemctl daemon-reload
systemctl enable --now gitea-build.timer
Run the build manually through systemd:
systemctl start gitea-build.service
Related
- gitea-runner-deb — Debian packages for the Gitea Actions runner