commit 2a26c123e7dce52978bc173b63512aba7eb8e014 Author: Alexander Zhirov Date: Thu May 1 22:14:15 2025 +0300 init new 6.3.1 diff --git a/README.md b/README.md new file mode 100644 index 0000000..3cd2cb2 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Forgejo Runner + +A daemon that connects to a Forgejo instance and runs jobs for continous integration. The installation and usage instructions are part of the Forgejo documentation. diff --git a/files/forgejo-runner.service b/files/forgejo-runner.service new file mode 100644 index 0000000..770a02a --- /dev/null +++ b/files/forgejo-runner.service @@ -0,0 +1,11 @@ +[Unit] +Description=Continuous integration for Forgejo + +[Service] +Type=exec +ExecStart=/usr/bin/forgejo-runner -c /etc/forgejo-runner/config.yml daemon +PrivateDevices=yes +PrivateTmp=yes + +[Install] +WantedBy=multi-user.target diff --git a/package.yml b/package.yml new file mode 100644 index 0000000..1805515 --- /dev/null +++ b/package.yml @@ -0,0 +1,24 @@ +name : forgejo-runner +version : 6.3.1 +release : 1 +source : + - https://code.forgejo.org/forgejo/runner/archive/v6.3.1.tar.gz : 15b8f70a5d9825c5fa338c9570de5f4d8573a96e518e14b970eb19971b88cc77 +homepage : https://code.forgejo.org/forgejo/runner +license : MIT +component : programming.tools +summary : CI/CD job runner for Forgejo +description: | + CI/CD job runner for Forgejo +builddeps : + - golang +build : | + go build \ + -o forgejo-runner \ + -ldflags "-X gitea.com/gitea/act_runner/internal/pkg/ver.version=6.3.1" + ./forgejo-runner generate-config > config.yml +install : | + sed -i -e "s|file: \.runner|file: /etc/forgejo-runner/.runner|" config.yml + + install -Dm755 forgejo-runner -t $installdir/usr/bin/ + install -Dm644 config.yml -t $installdir/etc/forgejo-runner/ + install -Dm644 $pkgfiles/forgejo-runner.service -t $installdir/usr/lib/systemd/system/