mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
parent
0ae385a5c8
commit
34522c71a7
1 changed files with 29 additions and 0 deletions
29
projects/flipt.io/package.yml
Normal file
29
projects/flipt.io/package.yml
Normal file
|
@ -0,0 +1,29 @@
|
|||
distributable:
|
||||
url: https://github.com/flipt-io/flipt/archive/refs/tags/{{version.tag}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: flipt-io/flipt
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
go.dev: 1.22.0
|
||||
env:
|
||||
GO_LDFLAGS:
|
||||
- -s
|
||||
- -w
|
||||
- -X main.version={{version}}
|
||||
linux:
|
||||
GO_LDFLAGS:
|
||||
- -buildmode=pie
|
||||
darwin:
|
||||
CGO_ENABLED: 1
|
||||
script: go build -v -trimpath -ldflags="${GO_LDFLAGS}" -o "{{ prefix }}"/bin/flipt ./cmd/flipt
|
||||
|
||||
provides:
|
||||
- bin/flipt
|
||||
|
||||
test:
|
||||
- "flipt --version | grep '^Version: {{version}}$'"
|
||||
- flipt config init --config config.yaml --force
|
||||
- 'grep ''^version: ".*"'' config.yaml'
|
Loading…
Reference in a new issue