[arch-commits] Commit in gitlab-runner/repos (7 files)
Anatol Pomozov
anatolik at archlinux.org
Tue Jul 21 18:08:01 UTC 2020
Date: Tuesday, July 21, 2020 @ 18:08:00
Author: anatolik
Revision: 664763
archrelease: copy trunk to community-testing-x86_64
Added:
gitlab-runner/repos/community-testing-x86_64/
gitlab-runner/repos/community-testing-x86_64/PKGBUILD
(from rev 664762, gitlab-runner/trunk/PKGBUILD)
gitlab-runner/repos/community-testing-x86_64/config.toml
(from rev 664762, gitlab-runner/trunk/config.toml)
gitlab-runner/repos/community-testing-x86_64/gitlab-runner.install
(from rev 664762, gitlab-runner/trunk/gitlab-runner.install)
gitlab-runner/repos/community-testing-x86_64/gitlab-runner.service
(from rev 664762, gitlab-runner/trunk/gitlab-runner.service)
gitlab-runner/repos/community-testing-x86_64/gitlab-runner.sysusers
(from rev 664762, gitlab-runner/trunk/gitlab-runner.sysusers)
gitlab-runner/repos/community-testing-x86_64/gitlab-runner.tmpfiles
(from rev 664762, gitlab-runner/trunk/gitlab-runner.tmpfiles)
------------------------+
PKGBUILD | 71 +++++++++++++++++++++++++++++++++++++++++++++++
config.toml | 1
gitlab-runner.install | 6 +++
gitlab-runner.service | 17 +++++++++++
gitlab-runner.sysusers | 1
gitlab-runner.tmpfiles | 1
6 files changed, 97 insertions(+)
Copied: gitlab-runner/repos/community-testing-x86_64/PKGBUILD (from rev 664762, gitlab-runner/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2020-07-21 18:08:00 UTC (rev 664763)
@@ -0,0 +1,71 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Contributor: Lubomir 'Kuci' Kucera <kuci24-at-gmail-dot-com>
+
+pkgname=gitlab-runner
+pkgver=13.2.0
+pkgrel=1
+pkgdesc="The official GitLab CI runner written in Go"
+arch=('x86_64')
+url='https://gitlab.com/gitlab-org/gitlab-runner'
+license=('GPL3')
+depends=('ca-certificates' 'curl' 'git' 'glibc' 'tar')
+makedepends=('git' 'go' 'git' 'mercurial' 'gox')
+install=gitlab-runner.install
+replaces=('gitlab-ci-multi-runner')
+backup=('etc/gitlab-runner/config.toml')
+noextract=("prebuilt-${pkgver}-x86_64.tar.xz"
+ "prebuilt-${pkgver}-arm.tar.xz")
+source=("$pkgname-$pkgver.tar.gz::https://gitlab.com/api/v4/projects/gitlab-org%2Fgitlab-runner/repository/archive?sha=v${pkgver}"
+ "prebuilt-${pkgver}-x86_64.tar.xz::https://gitlab-runner-downloads.s3.amazonaws.com/v${pkgver}/helper-images/prebuilt-x86_64.tar.xz"
+ "prebuilt-${pkgver}-arm.tar.xz::https://gitlab-runner-downloads.s3.amazonaws.com/v${pkgver}/helper-images/prebuilt-arm.tar.xz"
+ "gitlab-runner.service"
+ "gitlab-runner.sysusers"
+ "gitlab-runner.tmpfiles"
+ "config.toml")
+sha512sums=('facb22f4d9c4628e529118f6a330fb6753bd6f84bbe5c95b6316e761de20a71884e83e7a143b5bef2aedfde032b4c2e3eb99a7abebf0886249754202ff6b5737'
+ 'c08f31d72190bc0f2ece56160dd6a2efbdbf032ab325d100cabbabf57fcf129017d4dd51332e172174bf70ba3b4c2fe2189d3a3de112466a3aa4bc2c8516c74f'
+ '7c6a2f122027e117881dee5d5949c4f8abb327abcc7a7a5836b3f6adee3b46265df4b45698870373e555a2e17d583d6ce766185f6c23bc20170c8a2cc945e6be'
+ '8a5a8b7654d3864722e784b2814c6278c17876f1c0c4fc0676fbcf6817ad2ba4be55501e67ce88c62b5b63ca886b01afc6feac98ba49842acd244abdd1a8296f'
+ '8aa7f08702e99053c696fcc2aaba83beb9e9cd6f31973d82862db9350ac46df3a095377625d31fe909677525290d2de922d7a97930ed235774cb8f0da8944d40'
+ '6751d9fa0b27172d1b419c4138f5ac15cbc7c9147653a7258cf1470216142c637210bb60608c7ed0974e0e4057e5ddeae32225df1bb36e7dd1f20fec71e33cc3'
+ '9718b94bd0ddb09095ffb8c1e60ca1e9649dabb1747e7fc95e58e404b2f9effdeb4cfd759f5b904443dc53a4e18c02003c38f85584713deb49f6a6d1007503de')
+
+_srcdir="gitlab-runner-v${pkgver}-"
+
+prepare() {
+ local revision=$(ls -d ${_srcdir}* | rev | cut -c 33-40 | rev)
+
+ cd "${_srcdir}"*
+
+ local version=$(cat VERSION)
+
+ sed -i "s/export VERSION.*/export VERSION := $version/" Makefile
+ sed -i "s/REVISION := .*/REVISION := $revision/" Makefile
+ sed -i "s/var VERSION.*/var VERSION = \"$version\"/" common/version.go
+
+ make version
+
+ ln -sf "${srcdir}/prebuilt-${pkgver}-x86_64.tar.xz" prebuilt-x86_64.tar.xz
+ ln -sf "${srcdir}/prebuilt-${pkgver}-arm.tar.xz" prebuilt-arm.tar.xz
+}
+
+build() {
+ export CGO_LDFLAGS="${LDFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+ export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+
+ cd "${_srcdir}"*
+ go build -o gitlab-runner .
+}
+
+package() {
+ cd "${_srcdir}"*
+
+ install -Dm644 "${srcdir}/config.toml" "${pkgdir}/etc/gitlab-runner/config.toml"
+ install -Dm644 "${srcdir}/gitlab-runner.service" "${pkgdir}/usr/lib/systemd/system/gitlab-runner.service"
+ install -Dm644 "${srcdir}/gitlab-runner.sysusers" "${pkgdir}/usr/lib/sysusers.d/gitlab-runner.conf"
+ install -Dm644 "${srcdir}/gitlab-runner.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/gitlab-runner.conf"
+ install -Dm755 gitlab-runner "${pkgdir}/usr/bin/gitlab-runner"
+}
Copied: gitlab-runner/repos/community-testing-x86_64/config.toml (from rev 664762, gitlab-runner/trunk/config.toml)
===================================================================
--- community-testing-x86_64/config.toml (rev 0)
+++ community-testing-x86_64/config.toml 2020-07-21 18:08:00 UTC (rev 664763)
@@ -0,0 +1 @@
+concurrent = 1
Copied: gitlab-runner/repos/community-testing-x86_64/gitlab-runner.install (from rev 664762, gitlab-runner/trunk/gitlab-runner.install)
===================================================================
--- community-testing-x86_64/gitlab-runner.install (rev 0)
+++ community-testing-x86_64/gitlab-runner.install 2020-07-21 18:08:00 UTC (rev 664763)
@@ -0,0 +1,6 @@
+post_install() {
+ echo "Register the runner as root using"
+ echo "# gitlab-runner register"
+ echo "Configure the runner in /etc/gitlab-runner/config.toml"
+ echo "Use gitlab-runner.service to control the runner"
+}
Copied: gitlab-runner/repos/community-testing-x86_64/gitlab-runner.service (from rev 664762, gitlab-runner/trunk/gitlab-runner.service)
===================================================================
--- community-testing-x86_64/gitlab-runner.service (rev 0)
+++ community-testing-x86_64/gitlab-runner.service 2020-07-21 18:08:00 UTC (rev 664763)
@@ -0,0 +1,17 @@
+[Unit]
+Description=GitLab Runner
+After=syslog.target network.target
+ConditionFileIsExecutable=/usr/bin/gitlab-runner
+
+[Service]
+StartLimitInterval=5
+StartLimitBurst=10
+ExecStart=/usr/bin/gitlab-runner "run" "--working-directory" "/var/lib/gitlab-runner" "--config" "/etc/gitlab-runner/config.toml" "--service" "gitlab-runner" "--user" "gitlab-runner"
+Restart=always
+RestartSec=120
+StandardOutput=syslog
+StandardError=syslog
+SyslogIdentifier=gitlab-runner
+
+[Install]
+WantedBy=multi-user.target
Copied: gitlab-runner/repos/community-testing-x86_64/gitlab-runner.sysusers (from rev 664762, gitlab-runner/trunk/gitlab-runner.sysusers)
===================================================================
--- community-testing-x86_64/gitlab-runner.sysusers (rev 0)
+++ community-testing-x86_64/gitlab-runner.sysusers 2020-07-21 18:08:00 UTC (rev 664763)
@@ -0,0 +1 @@
+u gitlab-runner 107 "GitLab Runner" /var/lib/gitlab-runner
Copied: gitlab-runner/repos/community-testing-x86_64/gitlab-runner.tmpfiles (from rev 664762, gitlab-runner/trunk/gitlab-runner.tmpfiles)
===================================================================
--- community-testing-x86_64/gitlab-runner.tmpfiles (rev 0)
+++ community-testing-x86_64/gitlab-runner.tmpfiles 2020-07-21 18:08:00 UTC (rev 664763)
@@ -0,0 +1 @@
+d /var/lib/gitlab-runner 0700 gitlab-runner gitlab-runner -
More information about the arch-commits
mailing list