mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
parent
e9aaaa3af4
commit
f94820a1c0
1 changed files with 32 additions and 0 deletions
32
projects/coder.com/package.yml
Normal file
32
projects/coder.com/package.yml
Normal file
|
@ -0,0 +1,32 @@
|
|||
distributable:
|
||||
url: git+https://github.com/coder/coder.git
|
||||
ref: ${{version.tag}}
|
||||
|
||||
versions:
|
||||
github: coder/coder
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
go.dev: ^1.21
|
||||
script: go build $ARGS -ldflags="$LD_FLAGS" ./cmd/coder
|
||||
env:
|
||||
ARGS:
|
||||
- -trimpath
|
||||
- -o={{prefix}}/bin/coder
|
||||
- -tags slim
|
||||
LD_FLAGS:
|
||||
- -s
|
||||
- -w
|
||||
- -X github.com/coder/coder/v2/buildinfo.tag={{version}}
|
||||
- -X github.com/coder/coder/v2/buildinfo.agpl=true
|
||||
linux:
|
||||
LD_FLAGS:
|
||||
- -buildmode=pie
|
||||
|
||||
provides:
|
||||
- bin/coder
|
||||
|
||||
test:
|
||||
- coder version | grep {{version}}
|
||||
- coder netcheck 2>out.log || true
|
||||
- cat out.log | grep 'You are not logged in'
|
Loading…
Reference in a new issue