added adopt-info to grab version from git tag
This commit is contained in:
parent
7852b8900b
commit
a07dbe45cc
|
|
@ -1,6 +1,7 @@
|
||||||
name: grpcurl
|
name: grpcurl
|
||||||
base: core24
|
base: core24
|
||||||
version: '0.1'
|
# allow grpcurl part to call craftctl set-version
|
||||||
|
adopt-info: grpcurl
|
||||||
summary: grpcurl is a command-line tool that lets you interact with gRPC servers.
|
summary: grpcurl is a command-line tool that lets you interact with gRPC servers.
|
||||||
|
|
||||||
description: |
|
description: |
|
||||||
|
|
@ -23,6 +24,9 @@ parts:
|
||||||
source: https://github.com/fullstorydev/grpcurl
|
source: https://github.com/fullstorydev/grpcurl
|
||||||
source-type: git
|
source-type: git
|
||||||
override-build: |
|
override-build: |
|
||||||
|
tag="$(git describe --tags --abbrev=0)"
|
||||||
|
craftctl set version="$tag"
|
||||||
|
|
||||||
go build -o $CRAFT_PART_INSTALL/grpcurl ./cmd/grpcurl/grpcurl.go
|
go build -o $CRAFT_PART_INSTALL/grpcurl ./cmd/grpcurl/grpcurl.go
|
||||||
|
|
||||||
# adjust the permissions
|
# adjust the permissions
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue