From: Elan Ruusamäe Date: Thu, 24 Nov 2016 21:58:44 +0000 (+0200) Subject: version the build image as package version X-Git-Tag: auto/th/gitlab-ci-multi-runner-1.8.0-1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=b5ede9e6a305c94790752ff01e52e7669555036c;p=packages%2Fgitlab-ci-multi-runner.git version the build image as package version do this for simplicity this creates new tags each time runner is upgraded possibly from same tar.xz --- diff --git a/gitlab-ci-multi-runner.spec b/gitlab-ci-multi-runner.spec index d5e0797..fab8bbd 100644 --- a/gitlab-ci-multi-runner.spec +++ b/gitlab-ci-multi-runner.spec @@ -1,10 +1,3 @@ - -# the revision for images -# $ git fetch https://gitlab.com/gitlab-org/gitlab-ci-multi-runner refs/tags/v1.6.0 -# $ git rev-list -n 1 --abbrev-commit FETCH_HEAD -#define revision 76fdacd -# No changes to image, so don't refetch it -%define revision 1.5.2 Summary: The official GitLab CI runner written in Go Name: gitlab-ci-multi-runner Version: 1.8.0 @@ -84,7 +77,7 @@ export PATH=$(pwd):$PATH %{__make} version | tee version.txt CN=gitlab.com/gitlab-org/gitlab-ci-multi-runner/common -LDFLAGS="-X $CN.NAME=gitlab-ci-multi-runner -X $CN.VERSION=%{version} -X $CN.REVISION=%{revision}" +LDFLAGS="-X $CN.NAME=gitlab-ci-multi-runner -X $CN.VERSION=%{version} -X $CN.REVISION=%{version}" %gobuild # verify that version matches