Skip to content

Commit

Permalink
gitlab.com/gitlab-org/gitlab-runner
Browse files Browse the repository at this point in the history
  • Loading branch information
and-ri authored and jhheider committed Aug 16, 2023
1 parent 087ef77 commit e280d1e
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions projects/gitlab.com/gitlab-org/gitlab-runner/package.yml
Original file line number Diff line number Diff line change
@@ -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}}

0 comments on commit e280d1e

Please sign in to comment.