]> git.pld-linux.org Git - packages/gitlab-runner.git/commitdiff
fix version option output
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 15 Aug 2018 14:20:43 +0000 (17:20 +0300)
committerElan Ruusamäe <glen@pld-linux.org>
Wed, 15 Aug 2018 14:20:43 +0000 (17:20 +0300)
gitlab-runner.spec

index 5484d8fe8ece58d167a89a786edbfdb71dbcb3a1..3fe981f68891e16791f29473356855d4647e9c5f 100644 (file)
@@ -78,7 +78,8 @@ export PATH=$(pwd):$PATH
 %{__make} version | tee version.txt
 
 CN=gitlab.com/gitlab-org/gitlab-runner/common
-LDFLAGS="-X $CN.NAME=gitlab-runner -X $CN.VERSION=%{version} -X $CN.REVISION=%{version}"
+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"
 %gobuild
 
 # verify that version matches
This page took 0.141175 seconds and 4 git commands to generate.