statping/snapcraft.yaml

47 lines
1.2 KiB
YAML
Raw Normal View History

2018-12-04 07:15:01 +00:00
name: statping
2018-11-29 02:03:41 +00:00
version-script: cat version.txt
version: "stable"
2018-12-04 05:57:11 +00:00
summary: Statping Server Monitoring with Status Page
2018-11-28 22:35:49 +00:00
description: >
An easy to use Status Page for your websites and applications.
2018-12-04 05:57:11 +00:00
Statping will automatically fetch the application and render a beautiful
2018-11-28 22:35:49 +00:00
status page with tons of features for you to build an even better status page.
This Status Page generator allows you to use MySQL, Postgres, or SQLite
on multiple operating systems.
2018-11-28 22:47:26 +00:00
type: app
confinement: strict
grade: stable
architectures:
- build-on: amd64
- build-on: armhf
- build-on: arm64
2018-11-28 22:35:49 +00:00
adopt-info: statping
2018-11-28 22:35:49 +00:00
apps:
2018-12-04 07:15:01 +00:00
statping:
command: statping
2018-11-29 02:03:41 +00:00
plugs:
2018-11-29 04:47:35 +00:00
- home
- network
2018-11-29 04:47:35 +00:00
- network-bind
parts:
statping:
plugin: git
source: https://github.com/statping/statping.git
source-type: git
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:
- go
build-packages:
- git
- sed