chore: remove gitea-act-runner
This commit is contained in:
parent
ba07a3d422
commit
4400952873
5 changed files with 0 additions and 113 deletions
|
@ -1,20 +0,0 @@
|
|||
pkgbase = gitea-act-runner
|
||||
pkgdesc = A runner for Gitea based on act.
|
||||
pkgver = 0.2.11
|
||||
pkgrel = 1
|
||||
url = https://gitea.io
|
||||
arch = x86_64
|
||||
license = MIT
|
||||
makedepends = go
|
||||
makedepends = git
|
||||
options = !lto
|
||||
source = git+https://gitea.com/gitea/act_runner.git#tag=v0.2.11
|
||||
source = gitea-act-runner.service
|
||||
source = gitea-act-runner.sysusers
|
||||
source = gitea-act-runner.tmpfiles
|
||||
sha256sums = 75f447fdb5cd73825c8504de46ae18f296ccace399688533f8256ccc671f414c
|
||||
sha256sums = ac65e2cb2c33e610501627b27bcd9917ecaa1cd83c7b8c0375383fd80909ccd3
|
||||
sha256sums = 2a59d9fb29fc93c14bce7a8c34f454a44e5a84e0eebaa60fea00b74961dd82d6
|
||||
sha256sums = 93bf08efe2c7c669ee3a15fb281cc004441ddb6c60bdda9237cfd0ebd29113d1
|
||||
|
||||
pkgname = gitea-act-runner
|
|
@ -1,47 +0,0 @@
|
|||
pkgname=gitea-act-runner
|
||||
pkgver=0.2.11
|
||||
pkgrel=1
|
||||
pkgdesc="A runner for Gitea based on act."
|
||||
arch=(x86_64)
|
||||
url="https://gitea.io"
|
||||
license=(MIT)
|
||||
makedepends=(go git)
|
||||
options=(!lto)
|
||||
source=(git+https://gitea.com/gitea/act_runner.git#tag=v$pkgver
|
||||
gitea-act-runner.service
|
||||
gitea-act-runner.sysusers
|
||||
gitea-act-runner.tmpfiles)
|
||||
sha256sums=('75f447fdb5cd73825c8504de46ae18f296ccace399688533f8256ccc671f414c'
|
||||
'ac65e2cb2c33e610501627b27bcd9917ecaa1cd83c7b8c0375383fd80909ccd3'
|
||||
'2a59d9fb29fc93c14bce7a8c34f454a44e5a84e0eebaa60fea00b74961dd82d6'
|
||||
'93bf08efe2c7c669ee3a15fb281cc004441ddb6c60bdda9237cfd0ebd29113d1')
|
||||
|
||||
build() {
|
||||
cd ${srcdir}/act_runner
|
||||
export CGO_CPPFLAGS="${CPPFLAGS}"
|
||||
export CGO_CFLAGS="${CFLAGS}"
|
||||
export CGO_CXXFLAGS="${CXXFLAGS}"
|
||||
export CGO_LDFLAGS="${LDFLAGS}"
|
||||
go build \
|
||||
-tags 'netgo osusergo' \
|
||||
-trimpath \
|
||||
-buildmode=pie \
|
||||
-mod=readonly \
|
||||
-modcacherw \
|
||||
-ldflags "-linkmode external -extldflags \"${LDFLAGS}\" -X \"gitea.com/gitea/act_runner/internal/pkg/ver.version=v$pkgver\"" \
|
||||
.
|
||||
}
|
||||
|
||||
check() {
|
||||
cd ${srcdir}/act_runner
|
||||
make test
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${srcdir}/act_runner
|
||||
install -Dm755 act_runner -T "${pkgdir}"/usr/bin/${pkgname}
|
||||
install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
|
||||
install -Dm644 ../${pkgname}.service -t "${pkgdir}"/usr/lib/systemd/system/
|
||||
install -Dm644 ../${pkgname}.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/${pkgname}.conf
|
||||
install -Dm644 ../${pkgname}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${pkgname}.conf
|
||||
}
|
|
@ -1,43 +0,0 @@
|
|||
[Unit]
|
||||
Description=Gitea Act Runner
|
||||
After=network.target docker.service
|
||||
|
||||
[Service]
|
||||
User=gitea-act-runner
|
||||
Group=gitea-act-runner
|
||||
SupplementaryGroups=docker
|
||||
Type=simple
|
||||
WorkingDirectory=~
|
||||
StateDirectory=gitea-act-runner
|
||||
ExecStart=/usr/bin/gitea-act-runner daemon
|
||||
Restart=always
|
||||
RestartSec=2s
|
||||
AmbientCapabilities=
|
||||
CapabilityBoundingSet=
|
||||
LockPersonality=true
|
||||
MemoryDenyWriteExecute=true
|
||||
NoNewPrivileges=True
|
||||
#SecureBits=noroot-locked
|
||||
PrivateDevices=true
|
||||
PrivateTmp=true
|
||||
PrivateUsers=true
|
||||
ProtectClock=true
|
||||
ProtectControlGroups=true
|
||||
ProtectHome=true
|
||||
ProtectHostname=true
|
||||
ProtectKernelLogs=true
|
||||
ProtectKernelModules=true
|
||||
ProtectKernelTunables=true
|
||||
ProtectProc=invisible
|
||||
ProtectSystem=strict
|
||||
RestrictAddressFamilies=AF_INET AF_INET6 AF_NETLINK AF_UNIX
|
||||
RestrictNamespaces=true
|
||||
RestrictRealtime=true
|
||||
RestrictSUIDSGID=true
|
||||
SystemCallArchitectures=native
|
||||
SystemCallFilter=@system-service
|
||||
SystemCallErrorNumber=EPERM
|
||||
ReadWritePaths=/var/run/docker.sock
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -1 +0,0 @@
|
|||
u gitea-act-runner - "Gitea act runner daemon user" /var/lib/gitea-act-runner /bin/bash
|
|
@ -1,2 +0,0 @@
|
|||
d /var/lib/gitea-act-runner 0700
|
||||
Z /var/lib/gitea-act-runner - gitea-act-runner gitea-act-runner
|
Loading…
Add table
Add a link
Reference in a new issue