mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
+sftpgo.com (#4877)
* +sftpgo.com * cleanup --------- Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
parent
8d57facd51
commit
71de422c7e
1 changed files with 31 additions and 0 deletions
31
projects/sftpgo.com/package.yml
Normal file
31
projects/sftpgo.com/package.yml
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
distributable:
|
||||||
|
url: https://github.com/drakkan/sftpgo/archive/refs/tags/v{{version}}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
display-name: sftpgo
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: drakkan/sftpgo
|
||||||
|
strip: /^v/
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
go.dev: '*'
|
||||||
|
env:
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
COMMIT_SHA: "$(git describe --always --abbrev=8 --dirty)"
|
||||||
|
VERSION_DATE: "$(date -u +%FT%TZ)"
|
||||||
|
LDFLAGS:
|
||||||
|
- -s
|
||||||
|
- -w
|
||||||
|
- -X github.com/drakkan/sftpgo/v2/internal/version.commit=${COMMIT_SHA}
|
||||||
|
- -X github.com/drakkan/sftpgo/v2/internal/version.date=${VERSION_DATE}
|
||||||
|
linux:
|
||||||
|
LDFLAGS:
|
||||||
|
- -buildmode=pie
|
||||||
|
script: go build -v -trimpath -ldflags="${LDFLAGS}" -o {{prefix}}/bin/sftpgo
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/sftpgo
|
||||||
|
|
||||||
|
test: test "$(sftpgo --version | cut -d' ' -f2 | cut -d'-' -f1)" = {{version}}
|
Loading…
Reference in a new issue