mirror of
https://github.com/ivabus/pantry
synced 2024-11-30 04:05:06 +03:00
31 lines
663 B
YAML
31 lines
663 B
YAML
|
distributable:
|
||
|
url: https://github.com/go-acme/lego/archive/refs/tags/v{{version}}.tar.gz
|
||
|
strip-components: 1
|
||
|
|
||
|
versions:
|
||
|
github: go-acme/lego # reads github tags but only tags of releases (this is usually what you want)
|
||
|
strip: /^v/
|
||
|
|
||
|
build:
|
||
|
dependencies:
|
||
|
go.dev: ^1.20
|
||
|
|
||
|
env:
|
||
|
CGO_ENABLED: 0
|
||
|
GO11MODULE: on
|
||
|
MAIN_DIRECTORY: ./cmd/lego
|
||
|
LDFLAGS:
|
||
|
- -s
|
||
|
- -w
|
||
|
- -X main.version={{ version }}
|
||
|
linux:
|
||
|
LDFLAGS:
|
||
|
- -buildmode=pie
|
||
|
script: go build -v -ldflags="${LDFLAGS}" -o "{{ prefix }}"/bin/lego "${MAIN_DIRECTORY}"
|
||
|
|
||
|
provides:
|
||
|
- bin/lego
|
||
|
|
||
|
test:
|
||
|
script: test "$(lego --version|cut -d ' ' -f 3)" = {{version}}
|