mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
gitlab.com/gitlab-org/gitlab-runner
This commit is contained in:
parent
087ef770b8
commit
e280d1e815
1 changed files with 28 additions and 0 deletions
28
projects/gitlab.com/gitlab-org/gitlab-runner/package.yml
Normal file
28
projects/gitlab.com/gitlab-org/gitlab-runner/package.yml
Normal file
|
@ -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}}
|
Loading…
Reference in a new issue