Add support for building snaps

This commit is contained in:
Igor Ljubuncic 2018-12-19 16:39:15 +00:00
parent 385898b21f
commit 1270eeeae5

24
snapcraft.yaml Normal file
View File

@ -0,0 +1,24 @@
name: webhook
version: '1.0'
summary: webhook is a lightweight incoming webhook server to run shell commands
description: |
webhook is a lightweight incoming webhook server to run shell commands.
grade: stable
confinement: strict
base: core18
parts:
webhook:
plugin: go
source: https://github.com/adnanh/webhook.git
go-importpath: github.com/adnanh/webhook
build-packages:
- build-essential
apps:
webhook:
command: bin/webhook
daemon: simple
restart-condition: on-abnormal
plugs:
- home
- network
- network-bind