[packages/gitlab-runner] pass actual revision as gitlab-runner helper image is downloaded by the hash

glen glen at pld-linux.org
Tue Aug 20 14:15:59 CEST 2019


commit e999385bad1f5767eece246814bdba83deb95b7c
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Wed Aug 15 17:48:07 2018 +0300

    pass actual revision as gitlab-runner helper image is downloaded by the hash

 gitlab-runner.spec | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gitlab-runner.spec b/gitlab-runner.spec
index ae8ece2..49eb9f6 100644
--- a/gitlab-runner.spec
+++ b/gitlab-runner.spec
@@ -2,10 +2,11 @@
 # Conditional build:
 %bcond_with	prebuilt		# use prebuilt binary
 
+%define		helper_revision	081978aa
 Summary:	The official GitLab CI runner written in Go
 Name:		gitlab-runner
 Version:	11.1.0
-Release:	0.1
+Release:	0.4
 License:	MIT
 Group:		Development/Building
 Source0:	https://gitlab.com/gitlab-org/gitlab-runner/-/archive/v%{version}/gitlab-runner-v%{version}.tar.bz2
@@ -88,7 +89,7 @@ export PATH=$(pwd):$PATH
 
 CN=gitlab.com/gitlab-org/gitlab-runner/common
 DT=$(date -u +%%Y-%%m-%%dT%%H:%%M:%%S%%:z)
-LDFLAGS="-X $CN.VERSION=%{version} -X $CN.REVISION=v%{version} -X $CN.BRANCH=v%{version} -X $CN.BUILT=$DT"
+LDFLAGS="-X $CN.VERSION=%{version} -X $CN.REVISION=%{helper_revision} -X $CN.BRANCH=v%{version} -X $CN.BUILT=$DT"
 %gobuild
 %else
 install -p %{SOURCE1} gitlab-runner
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gitlab-runner.git/commitdiff/e999385bad1f5767eece246814bdba83deb95b7c



More information about the pld-cvs-commit mailing list