mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
parent
f9609abda4
commit
f0ef970aa6
|
@ -31,9 +31,16 @@ build:
|
||||||
- -buildmode=pie
|
- -buildmode=pie
|
||||||
script:
|
script:
|
||||||
- go generate ./cmd
|
- go generate ./cmd
|
||||||
|
- run: sed -i 's/Version = ".*"/Version = "v{{version}}"/' version_generated.go
|
||||||
|
working-directory: cmd
|
||||||
|
if: <1.2
|
||||||
- go build -v -ldflags="${LDFLAGS}" -o "{{ prefix }}/bin/pebble" --trimpath ./cmd/pebble
|
- go build -v -ldflags="${LDFLAGS}" -o "{{ prefix }}/bin/pebble" --trimpath ./cmd/pebble
|
||||||
|
|
||||||
provides:
|
provides:
|
||||||
- bin/pebble
|
- bin/pebble
|
||||||
|
|
||||||
test: test "$(pebble version --client)" = v{{version}}
|
test:
|
||||||
|
- run: pebble version | grep 'client v{{version}}'
|
||||||
|
if: <1.2
|
||||||
|
- run: test "$(pebble version --client)" = v{{version}}
|
||||||
|
if: '>=1.2'
|
||||||
|
|
Loading…
Reference in a new issue