Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for building snaps #307

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: ponzu
version: '1.0'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@igorljubuncic - would it be safer to use the same version number as the one most recently tagged (in this case, 0.10.1)? Sorry, I'm not sure what a 1.0 version might imply to a snap user.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The version string has no semantic meaning in snaps - you can use anything you like. You can even use the git tag if you like, or any naming scheme you want, whatever makes most sense to you.

https://docs.snapcraft.io/snapcraft-yaml-reference

summary: Headless CMS with automatic JSON API
description: |
Headless CMS with automatic JSON API. Featuring auto-HTTPS from
Lets Encrypt, HTTP/2 Server Push, and flexible server framework
written in Go.
grade: stable
confinement: strict
base: core18
parts:
ponzu:
plugin: go
source: https://github.com/ponzu-cms/ponzu.git
go-importpath: github.com/ponzu-cms/ponzu
build-packages:
- build-essential
apps:
ponzu:
command: bin/ponzu
daemon: simple
restart-condition: on-abnormal
plugs:
- home
- network
- network-bind