commit: 0c886a882b180375d63d60da0e95b6b31a6386ea Author: William Hubbs <williamh <AT> gentoo <DOT> org> AuthorDate: Mon Feb 2 15:58:32 2026 +0000 Commit: William Hubbs <williamh <AT> gentoo <DOT> org> CommitDate: Mon Feb 2 15:59:57 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c886a88
dev-util/gitlab-runner: add 18.8.0 Signed-off-by: William Hubbs <williamh <AT> gentoo.org> dev-util/gitlab-runner/Manifest | 2 + dev-util/gitlab-runner/gitlab-runner-18.8.0.ebuild | 68 ++++++++++++++++++++++ 2 files changed, 70 insertions(+) diff --git a/dev-util/gitlab-runner/Manifest b/dev-util/gitlab-runner/Manifest index f3ab1348c2f3..baf6f878142c 100644 --- a/dev-util/gitlab-runner/Manifest +++ b/dev-util/gitlab-runner/Manifest @@ -6,3 +6,5 @@ DIST gitlab-runner-18.7.1-deps.tar.xz 127632540 BLAKE2B 472deed01a41806d6c6da745 DIST gitlab-runner-18.7.1.tar.bz2 2178217 BLAKE2B f7e755859fd6211a372e73116c0d20a42c105246120ae49d9c82ba8ea1107a9015dbe359b5ebf0caceb0c82a02695c66c1363c67887c94faecbc3d66121d6be0 SHA512 b00008928d2fea82417b1c2be641f92d3b22dcbce9a0cc8eb02564d6f0e1fc4228dd727771c2f3474836c048b9a657f84ce724820a7dbd7263a9eb0a8ea8d9bd DIST gitlab-runner-18.7.2-deps.tar.xz 127225096 BLAKE2B 411e2c7f9f1ca8c98d7d5f279e1c3fb245a2ad2755a3b4bbe39327e4b76c43ced5ab8635c942fec69c3879c84a8da5ba4b2f076bbcc40ab7eb0a7229243d1f73 SHA512 4e873d26f1326832a386af4f7c331650f237cab591fe638922e51a24c5a757b9b7fc6dae68cfbbadd3a5714d36003a1ece818f31dcb2c553ab3e355638e4593f DIST gitlab-runner-18.7.2.tar.bz2 2177714 BLAKE2B e072a5c24479167142aa8748ed175553db63bc8a914a73a5af923ebd0ae4b416707735e3b0efe84ec597ba4360801575143a6eb3851bdd3e9bc3434744c0f67f SHA512 822eceeed5fa670635dd527e8da1b7ca0dd04b428b7cf5be955713368bdbb3ff4db4bacf3da0745efeaa9e559e2d4c2de3b6687f3a20de765140996e69c10128 +DIST gitlab-runner-18.8.0-deps.tar.xz 127637448 BLAKE2B d27581d907eb84b4bcbc2afa1c1e256a3b65ba5582837f373246f48e0bbb3151b84c406c49f5ec5fdc41de865d989badd2062a7472bf40ad8d1d75d66855c640 SHA512 902daf9241245fad0c32c97197d6eac84c2a7321d1e7803be09bf4b97642b8fddabedaf81852ffd98859b650e999911e60b9af3c28334c6715ba28cab176a9fa +DIST gitlab-runner-18.8.0.tar.bz2 2194167 BLAKE2B 05d04d1d7e0c2e9ce91763b4d4e0b36bd32b7281b76c6914ce85ce6d81f191115e1f25de74b6ba0613ba4969433b95467006431cd8dff39d17f3acccebdf6137 SHA512 9125fe5b2b5a279ccc61620cd2c44b79af75a63fb45c6532e15e79132bdbef3610a1064020570a05b9d71c0082d0a7262fbbacd2836c54f9eb22c478b268d754 diff --git a/dev-util/gitlab-runner/gitlab-runner-18.8.0.ebuild b/dev-util/gitlab-runner/gitlab-runner-18.8.0.ebuild new file mode 100644 index 000000000000..09fb1076cbc7 --- /dev/null +++ b/dev-util/gitlab-runner/gitlab-runner-18.8.0.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit eapi9-ver go-module systemd tmpfiles + +# make sure this gets updated for every bump +GIT_COMMIT=9ffb4aa0 + +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" + +S="${WORKDIR}/${PN}-v${PV}" + +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" + +src_compile() { + emake \ + BUILT="$(date -u '+%Y-%m-%dT%H:%M:%S%:z')" \ + GOX="${EPREFIX}/usr/bin/gox" \ + REVISION=${GIT_COMMIT} \ + VERSION=${PV} \ + runner-and-helper-bin-host +} + +src_test() { + CI=0 ego test +} + +src_install() { + newbin out/binaries/gitlab-runner-linux-* gitlab-runner + newbin out/binaries/gitlab-runner-helper/gitlab-runner-helper.linux-* gitlab-runner-helper + DOCS=( docs CHANGELOG.md README.md ) + einstalldocs + insinto /usr/share/${PN} + doins config.toml.example + + newconfd "${FILESDIR}/${PN}-18.confd" "${PN}" + newinitd "${FILESDIR}/${PN}-18.initd" "${PN}" + systemd_dounit "${FILESDIR}/${PN}.service" + newtmpfiles "${FILESDIR}"/${PN}.tmpfile ${PN}.conf + keepdir /etc/${PN} + fperms 0700 /etc/${PN} + fowners gitlab-runner:gitlab-runner /etc/${PN} +} + +pkg_postinst() { + tmpfiles_process gitlab-runner.conf + if ver_replacing -lt 18.0.0; then + ewarn "The logs are now redirected to syslog instead of being stored in /var/log/gitlab-runner" + ewarn + fi + [[ -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" +}
