From: Elan Ruusamäe Date: Wed, 15 Aug 2018 14:48:07 +0000 (+0300) Subject: pass actual revision as gitlab-runner helper image is downloaded by the hash X-Git-Tag: auto/th/gitlab-runner-11.1.0-0.4 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fgitlab-runner.git;a=commitdiff_plain;h=e999385 pass actual revision as gitlab-runner helper image is downloaded by the hash --- 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