mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
dev-util/gitlab-runner: add 18.0.5
Signed-off-by: William Hubbs <williamh@gentoo.org>
This commit is contained in:
@@ -10,5 +10,7 @@ DIST gitlab-runner-18.0.2-deps.tar.xz 115598224 BLAKE2B 30c3bb311563ce13febc178e
|
||||
DIST gitlab-runner-18.0.2.tar.bz2 1944104 BLAKE2B 48087f98a0f313139305a69379189555717c1006afc16dc948bd0e527f547290f9346a01aefcaf6be924b859702a9935760ec661aedcd5a6911cbdc65e13e722 SHA512 0a7b5326a90b4fb8ee1a2ea7d0b10b696e3b02358ca5652bb7675584188de3b9cf94501741fa558538dc1bd66356df9e1fdcfc247201fc349646cce9504442c2
|
||||
DIST gitlab-runner-18.0.3-deps.tar.xz 111872284 BLAKE2B dc72771b1142c20ad418d614c40c4eec31b5b45d7c4fabbede7cb2afe3b75ca6777357741974160de9154ded74d03f77f81f0f0da857ed46d8955f0d1f46d354 SHA512 74fb2fdf866059cceb6b3752f2dc88773c949b0dd73aaa0c4c4ba047f18801d78fdf660f69f1626e109811fe837871ab56dbb85c5334ba7c2e5b834c2528aaa8
|
||||
DIST gitlab-runner-18.0.3.tar.bz2 1943948 BLAKE2B 71549724580f0750bb1ed2169e4da9d88e77ebfd3085a39d9773e5070741f7d396f5a22ec721d98b4c3e0ebac740dc92dcf91eea1ac4e626d275c3a5b78f6de0 SHA512 b282990128061bab731621cf4512e77200f65b49b6120721c85b27656488cffbbfe1cc65f07fbe87e5a4d52c9b7158e742b02702804318a0cceea36cc5789816
|
||||
DIST gitlab-runner-18.0.5-deps.tar.xz 116157072 BLAKE2B 6752b2cdad0d258bf1b71b456f3d0aee26d15d64672f6b4a3a45abd65db3c217403278c728dfbb1e467427c2d070ced775f2f0cbacae94d2d75dcfa481c15ecf SHA512 49f363480c75a0665da0274fe680085b16b7b0a63942b98bfd18b1cd6d12facc3d73c75ce576af7b55d8a20b43003b1a812e0f86f86c0c50664da6d1308c8ea5
|
||||
DIST gitlab-runner-18.0.5.tar.bz2 1947353 BLAKE2B 8c5a657b1553dd9f1ed3af8fba6e09cb818d4c035b909807e6db33ada194c3179ba47cdd487bcce2d9f2878cdf5ab4501abc2ba63e490b7eabb2dbe7264d7860 SHA512 26d1f6d45602016e4f1abebfbc2f3caf60f052c955ce69aaf711371a8ed6b1d38325e2b68d868e58eef6344c7b0adf3660dd2b3cadf711d3efdf539a4bf4f67f
|
||||
DIST gitlab-runner-18.1.1-deps.tar.xz 119199284 BLAKE2B 3914e47a18b290fffcddbb6cdeb27f15f910ef5ec2d515479d93593a9dbbf0c0686bf643a6e47aae8b0e46aa2b42550a9ea70ce057d4482e6ca854d9e766181b SHA512 4e5bf9f17dc4d738878430fcca80bec8b9f22cf72cde40fdd6d5e363062bfb4eb96ff1cc443fef2aa72659ab99f67ff3b441f6146076ad6d18aceb323b98cf15
|
||||
DIST gitlab-runner-18.1.1.tar.bz2 1955185 BLAKE2B 210a82fd71bb2993428470566ad10938d5c584cef40f8c2843f4e2a4e0df6f02f73d9fba220c4d79d4f413d238e859aa6f9c64cd883bff30c399ee5508c10313 SHA512 3dc4c97eee93bff48facd4ff0f008baf4aa7763331d47f18666e009745621c3b01f88ce0f1fc77ae3538bc09b09a961500ad06299dc18919b36ceb866e2ce014
|
||||
|
||||
68
dev-util/gitlab-runner/gitlab-runner-18.0.5.ebuild
Normal file
68
dev-util/gitlab-runner/gitlab-runner-18.0.5.ebuild
Normal file
@@ -0,0 +1,68 @@
|
||||
# Copyright 1999-2025 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=3f9b137e
|
||||
|
||||
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"
|
||||
}
|
||||
Reference in New Issue
Block a user