From e280d1e815d2b593c1728c1a1f73412a818bae2d Mon Sep 17 00:00:00 2001 From: Andrii Riabchenko Date: Wed, 16 Aug 2023 11:13:40 +0300 Subject: [PATCH] gitlab.com/gitlab-org/gitlab-runner --- .../gitlab-org/gitlab-runner/package.yml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 projects/gitlab.com/gitlab-org/gitlab-runner/package.yml diff --git a/projects/gitlab.com/gitlab-org/gitlab-runner/package.yml b/projects/gitlab.com/gitlab-org/gitlab-runner/package.yml new file mode 100644 index 00000000..ab8068b1 --- /dev/null +++ b/projects/gitlab.com/gitlab-org/gitlab-runner/package.yml @@ -0,0 +1,28 @@ +distributable: + url: https://gitlab.com/gitlab-org/gitlab-runner/-/archive/v{{version}}/gitlab-runner-v{{version}}.tar.gz + strip-components: 1 +versions: + gitlab: gitlab-org/gitlab-runner +build: + dependencies: + go.dev: '*' + script: + - go build $GO_ARGS -ldflags="$GO_LDFLAGS" + env: + GO_ARGS: + - -trimpath + - -o="{{prefix}}/bin/gitlab-runner" + GO_LDFLAGS: + - -s + - -w + - -X gitlab.com/gitlab-org/gitlab-runner/common.NAME=gitlab-runner + - -X gitlab.com/gitlab-org/gitlab-runner/common.VERSION={{version}} + - -X gitlab.com/gitlab-org/gitlab-runner/common.BRANCH={{version.major}}-{{version.minor}}-stable + - -X gitlab.com/gitlab-org/gitlab-runner/common.BUILT=$(date -Iseconds) + - -buildmode=pie + GO111MODULE: on +provides: + - bin/gitlab-runner +test: + script: + - gitlab-runner --version | grep {{version}}