aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gitlab-runner/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/gitlab-runner/APKBUILD')
-rw-r--r--testing/gitlab-runner/APKBUILD31
1 files changed, 23 insertions, 8 deletions
diff --git a/testing/gitlab-runner/APKBUILD b/testing/gitlab-runner/APKBUILD
index 9486b6a283..b41cc6f577 100644
--- a/testing/gitlab-runner/APKBUILD
+++ b/testing/gitlab-runner/APKBUILD
@@ -1,17 +1,24 @@
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
-# Maintainer:
-pkgname="gitlab-runner"
-pkgver="12.0.2"
-pkgrel=2
+# Contributor: Rasmus Thomsen <oss@cogitir.dev>
+# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
+pkgname=gitlab-runner
+pkgver=12.1.0
+pkgrel=0
pkgdesc="GitLab runner for CI/CD jobs"
url="https://docs.gitlab.com/runner/"
arch="all"
license="MIT"
makedepends="go"
-source="https://gitlab.com/gitlab-org/gitlab-runner/-/archive/v$pkgver/gitlab-runner-v$pkgver.tar.gz"
+install="$pkgname.pre-install $pkgname.pre-upgrade"
+pkgusers="gitlab-runner"
+pkggroups="gitlab-runner"
+options="!check" # Need to be run in a git repo
+subpackages="$pkgname-helper $pkgname-openrc"
+source="https://gitlab.com/gitlab-org/gitlab-runner/-/archive/v$pkgver/gitlab-runner-v$pkgver.tar.gz
+ $pkgname.initd
+ $pkgname.confd"
+
builddir="$srcdir/src/gitlab.com/gitlab-org/$pkgname"
-options="net"
-subpackages="$pkgname-helper"
export GOPATH="$srcdir"
export CGO_ENABLED=0
@@ -39,6 +46,12 @@ build() {
package() {
install -Dm755 "$builddir"/bin/gitlab-runner \
"$pkgdir"/usr/bin/gitlab-runner
+
+ install -m755 -D "$srcdir/$pkgname.initd" "$pkgdir"/etc/init.d/gitlab-runner
+ install -m755 -D "$srcdir/$pkgname.confd" "$pkgdir"/etc/conf.d/gitlab-runner
+
+ mkdir -p "$pkgdir"/var/lib/gitlab-runner
+ chown gitlab-runner:gitlab-runner "$pkgdir"/var/lib/gitlab-runner
}
helper() {
@@ -47,4 +60,6 @@ helper() {
"$subpkgdir"/usr/bin/gitlab-runner-helper
}
-sha512sums="ccc1f7c8b2123f91e1ad440acaf69b2fdb435dd016c7e0c1d75c6f706d4ff79ea2eb7d34e91986d82afa3606b5453b4fbb18530f553c826809173cf88ecb810f gitlab-runner-v12.0.2.tar.gz"
+sha512sums="1b3f06b7000252631bec04a58474dda826b0fb8d28c4144051a231fba5ef0c5c4b6e0f9ca6bdf9bf9b16b9117cbcf6385eb7bac85bda7b9f99de4300cbcc2066 gitlab-runner-v12.1.0.tar.gz
+2ae753efc220c46378e84831f01b289f3689af70cd7cbb0bbcc04dc17c910d65eb5105c198d5a23098e27797a7d1c695f49b244993ea4676eb9ec9cda064f44e gitlab-runner.initd
+243ed9d7575e925794213973232f95f02d5e10cfab6cd29df6a4641b9d05b342ae90678b2eea4b21ddc703596429919d037b38248046d7c5e7a480406f412445 gitlab-runner.confd"