Added readme with installation instructions
This commit is contained in:
1 parent
ec65591643
commit
729b5867c1
1 file changed
+36
@@ -0,0 +1,36 @@
|
|||||||
|
# Debian package for the Gitea runner
|
||||||
|
Debian package for the [Gitea Actions runner](https://gitea.com/gitea/runner) (amd64 only). Installs the binary, a systemd service, a `gitea-runner` user, state in `/var/lib/gitea-runner` and config in `/etc/gitea-runner/`.
|
||||||
|
|
||||||
|
## Build
|
||||||
|
|
||||||
|
```bash
|
||||||
|
make # default VERSION/REVISION from the Makefile
|
||||||
|
make VERSION=5.1.1 REVISION=2
|
||||||
|
```
|
||||||
|
|
||||||
|
The upstream binary is downloaded and verified against the release's `checksums.txt`.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo curl https://git.gansejunge.com/api/packages/utility/debian/repository.key -o /etc/apt/keyrings/gitea-utility.asc
|
||||||
|
|
||||||
|
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/gitea-utility.asc] https://git.gansejunge.com/api/packages/utility/debian any main" | sudo tee -a /etc/apt/sources.list.d/gitea.list
|
||||||
|
|
||||||
|
sudo apt update
|
||||||
|
```
|
||||||
|
|
||||||
|
## Post installation
|
||||||
|
|
||||||
|
After running the installation on a new machine for the first time, first create a new runner in `Site Administration -> Actions -> Runners`, copy the code and then
|
||||||
|
```
|
||||||
|
sudo -u gitea-runner -H sh -c 'cd ~ && gitea-runner register \
|
||||||
|
--config /etc/gitea-runner/config.yaml \
|
||||||
|
--no-interactive \
|
||||||
|
--instance https://git.gansejunge.com \
|
||||||
|
--token YOUR_REGISTRATION_TOKEN \
|
||||||
|
--name "$(hostname)" \
|
||||||
|
--labels ubuntu-latest:docker://docker.gitea.com/runner-images:ubuntu-latest'
|
||||||
|
|
||||||
|
sudo systemctl start gitea-runner
|
||||||
|
```
|
||||||
Reference in new issue
Block a user