summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2024-12-06 16:27:12 -0600
committerWilliam Hubbs <williamh@gentoo.org>2024-12-06 16:27:12 -0600
commit94765c119dc3e6da6d2384e5b35b9b3e00e2a715 (patch)
tree592b5875f270ddf0ed430340f11276465bcfb29c /dev-util/gitlab-runner
parentdev-util/gitlab-runner: add 17.5.4 (diff)
downloadgentoo-94765c119dc3e6da6d2384e5b35b9b3e00e2a715.tar.gz
gentoo-94765c119dc3e6da6d2384e5b35b9b3e00e2a715.tar.bz2
gentoo-94765c119dc3e6da6d2384e5b35b9b3e00e2a715.zip
dev-util/gitlab-runner: add 17.6.0
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'dev-util/gitlab-runner')
-rw-r--r--dev-util/gitlab-runner/Manifest2
-rw-r--r--dev-util/gitlab-runner/gitlab-runner-17.6.0.ebuild62
2 files changed, 64 insertions, 0 deletions
diff --git a/dev-util/gitlab-runner/Manifest b/dev-util/gitlab-runner/Manifest
index 5697f1c7e8d2..dcb851508796 100644
--- a/dev-util/gitlab-runner/Manifest
+++ b/dev-util/gitlab-runner/Manifest
@@ -12,3 +12,5 @@ DIST gitlab-runner-17.5.1-deps.tar.xz 108461592 BLAKE2B e78fc32c94f469267fb416f1
DIST gitlab-runner-17.5.1.tar.bz2 1725228 BLAKE2B 7aceaa08ac654b0e197eeac81828b505e940a0c37c1d47cee375858b650651277c4ce257f60106e845341252dccd9748d1c79fca5cac2cc151e08b9c4736b18c SHA512 f534bb38dfc42dcaa40067956a76680788d926e957f3fbf6bf763547428d0d896a2eb3360ed297c47fe2861d8fa992cf42e77346b552f4ed50fef9bb50f8cf93
DIST gitlab-runner-17.5.4-deps.tar.xz 108479468 BLAKE2B c060c4a4e17b9e9a2ba9bf0b8eb15f2cca8546118bfd3e94fc19862a5c1578d1c9e9414ede859406a5ae713cc487f44306b2230dc044262c323d8380ce79f0ca SHA512 226ced14c0e8513d11e120f0b8673d59d8d18db7f54602ecc273bbf9cb1b1d540d0e360a3f211bf7500c43ee8b9ead1ac96d7ce462dac2243e441a8232c8da41
DIST gitlab-runner-17.5.4.tar.bz2 1726499 BLAKE2B 98f5ab8260853ac399b9872599ec0a4e34c53d5c99a32231848eeba89ee9e16caafd1c5b49f00e3ece1c3eb1a0ff215d72b5e26a8ff18aa77e3b78effa0c7d9f SHA512 bf9d1a0803c922898e873edabd576fcd3a801885e5cb27acfab48b2f3cf0d6dc6976cdd0c0154401758bdf45e9b6991b5b311183c233b69ae611b18db22a71a3
+DIST gitlab-runner-17.6.0-deps.tar.xz 108556780 BLAKE2B 539bdb456b6788a384fccd5fed3ab510be91e11172e66aedd90eb972b442ad3835a3dff6ffebfca1f428dc47ccd26519acd8fe05c545de01108f6606e5cdea97 SHA512 592fc6d10a5342ecfbe56d5c40e9cd4df450b44a1b6655b858c6e1c6ed82e50d4db282f8ac68985707c4983958830f021ee2e9f9aa55576e161c3746f4964f17
+DIST gitlab-runner-17.6.0.tar.bz2 1744529 BLAKE2B 17bd3d06da237890ff8e08add9b9147292728bb51edd0517e9f99fbe14c5030cf16b0809b621f21099438d72669643a93cc0dc5455640ef00117b8bc55440515 SHA512 f43baf6b3f510316d06ee9edcfc9a87182921da6e2f91169fbe80d3e1887c728e729219f6ee07f73030c4c82ecf809857fb448d2f8829fa0e5829861bf9e1367
diff --git a/dev-util/gitlab-runner/gitlab-runner-17.6.0.ebuild b/dev-util/gitlab-runner/gitlab-runner-17.6.0.ebuild
new file mode 100644
index 000000000000..6305a4035230
--- /dev/null
+++ b/dev-util/gitlab-runner/gitlab-runner-17.6.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit go-module systemd tmpfiles
+
+# make sure this gets updated for every bump
+GIT_COMMIT=374d34fd
+
+DESCRIPTION="The official GitLab Runner, written in Go"
+HOMEPAGE="https://gitlab.com/gitlab-org/gitlab-runner"
+SRC_URI="https://gitlab.com/gitlab-org/gitlab-runner/-/archive/v${PV}/${PN}-v${PV}.tar.bz2 -> ${P}.tar.bz2"
+SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 ~ppc64 ~riscv"
+
+COMMON_DEPEND="acct-group/gitlab-runner
+ acct-user/gitlab-runner"
+DEPEND="${COMMON_DEPEND}"
+RDEPEND="${COMMON_DEPEND}"
+BDEPEND="dev-go/gox"
+
+DOCS=( docs CHANGELOG.md README.md config.toml.example )
+
+S="${WORKDIR}/${PN}-v${PV}"
+
+src_compile() {
+ emake \
+ BUILT="$(date -u '+%Y-%m-%dT%H:%M:%S%:z')" \
+ GOX="${EPREFIX}/usr/bin/gox" \
+ REVISION=${GIT_COMMIT} \
+ VERSION=${PV} \
+ runner-bin-host
+}
+
+src_test() {
+ CI=0 ego test
+}
+
+src_install() {
+ dobin out/binaries/gitlab-runner
+ einstalldocs
+
+ newconfd "${FILESDIR}/${PN}.confd" "${PN}"
+ newinitd "${FILESDIR}/${PN}.initd" "${PN}"
+ systemd_dounit "${FILESDIR}/${PN}.service"
+ newtmpfiles "${FILESDIR}"/${PN}.tmpfile ${PN}.conf
+ keepdir /{etc,var/log}/${PN}
+ fperms 0700 /{etc,var/log}/gitlab-runner
+ fowners gitlab-runner:gitlab-runner /{etc,var/log}/${PN}
+}
+
+pkg_postinst() {
+ tmpfiles_process gitlab-runner.conf
+ [[ -f ${EROOT}/etc/gitlab-runner/config.toml ]] && return
+ elog
+ elog "To use the runner, you need to register it with this command:"
+ elog "# gitlab-runner register"
+ elog "This will also create the configuration file in /etc/gitlab-runner/config.toml"
+}