mirror of https://github.com/statping/statping
snapcraft
parent
132863bb63
commit
704476a747
|
@ -29,18 +29,14 @@ apps:
|
||||||
|
|
||||||
parts:
|
parts:
|
||||||
statping:
|
statping:
|
||||||
plugin: git
|
plugin: go
|
||||||
source: https://github.com/statping/statping.git
|
source: .
|
||||||
source-type: git
|
go-importpath: statping
|
||||||
override-pull: |
|
|
||||||
snapcraftctl set-version "$(cat version.txt)"
|
|
||||||
override-build: |
|
|
||||||
export GOPATH=$PWD
|
|
||||||
cd src/github.com/statping/statping
|
|
||||||
GOOS=linux go build -a -ldflags "-s -w -extldflags -static -X main.VERSION=$(cat version.txt)" -o statping --tags "netgo linux" ./cmd
|
|
||||||
build-snaps:
|
build-snaps:
|
||||||
- go
|
- go
|
||||||
build-packages:
|
build-packages:
|
||||||
- git
|
- git
|
||||||
|
- gcc
|
||||||
|
- make
|
||||||
- sed
|
- sed
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue