mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
parent
15e2d32e8b
commit
6d56d8a239
1 changed files with 27 additions and 0 deletions
27
projects/devpod.sh/cli/package.yml
Normal file
27
projects/devpod.sh/cli/package.yml
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
distributable:
|
||||||
|
url: https://github.com/loft-sh/devpod/archive/refs/tags/{{version.tag}}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: loft-sh/devpod
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
go.dev: ^1.21
|
||||||
|
script: go build $ARGS -ldflags="$GO_LDFLAGS" ./
|
||||||
|
env:
|
||||||
|
ARGS:
|
||||||
|
- -trimpath
|
||||||
|
- -o={{prefix}}/bin/devpod
|
||||||
|
GO_LDFLAGS:
|
||||||
|
- -s
|
||||||
|
- -w
|
||||||
|
- -X=github.com/loft-sh/devpod/pkg/version.version="v{{version}}"
|
||||||
|
linux:
|
||||||
|
GO_LDFLAGS:
|
||||||
|
- -buildmode=pie
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/devpod
|
||||||
|
|
||||||
|
test: test "$(devpod version)" = "v{{version}}"
|
Loading…
Reference in a new issue