mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
+github.com/cloudbase/garm (#6361)
* +github.com/cloudbase/garm * just style --------- Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
parent
9263cc1a6d
commit
82dbea6374
1 changed files with 36 additions and 0 deletions
36
projects/github.com/cloudbase/garm/package.yml
Normal file
36
projects/github.com/cloudbase/garm/package.yml
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
distributable:
|
||||||
|
url: https://github.com/cloudbase/garm/archive/refs/tags/{{version.tag}}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
display-name: cloudbase/garm
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: cloudbase/garm
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
go.dev: ^1.20
|
||||||
|
env:
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
GO_LDFLAGS:
|
||||||
|
- -s
|
||||||
|
- -w
|
||||||
|
- -X main.Version={{ version }}
|
||||||
|
- -X github.com/cloudbase/garm/cmd/garm-cli/cmd.Version={{ version }}
|
||||||
|
linux:
|
||||||
|
GO_LDFLAGS:
|
||||||
|
- -buildmode=pie
|
||||||
|
ARGS:
|
||||||
|
- -v
|
||||||
|
- -mod vendor
|
||||||
|
script:
|
||||||
|
- go build $ARGS -ldflags="${GO_LDFLAGS}" -o "{{ prefix }}"/bin/garm ./cmd/garm
|
||||||
|
- go build $ARGS -ldflags="${GO_LDFLAGS}" -o "{{ prefix }}"/bin/garm-cli ./cmd/garm-cli
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/garm
|
||||||
|
- bin/garm-cli
|
||||||
|
|
||||||
|
test:
|
||||||
|
- test "$(garm --version)" = {{version}}
|
||||||
|
- test "$(garm-cli version)" = {{version}}
|
Loading…
Reference in a new issue