diff --git a/README.md b/README.md index a2dc41850..80147c90e 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,9 @@ + + Get it from the Snap Store +

## Features diff --git a/docs/snap.md b/docs/snap.md new file mode 100644 index 000000000..46bc94a5c --- /dev/null +++ b/docs/snap.md @@ -0,0 +1,26 @@ +### Snap + +flagD can be released on the snapstore as a snap package. +The homepage for the snap is found [here](https://snapcraft.io/flagd/) + +#### Login + +`snapcraft login` + +#### Build + +`snapcraft` + +Run this command from `snap` directory. + +#### Release + +``` +snapcraft upload flagd__amd64.snap --release=candidate +``` + +#### Promotion + +``` +snapcraft promote flagd --from-channel=candidate --to-channel=stable +``` \ No newline at end of file diff --git a/release-please-config.json b/release-please-config.json index df0612f1f..fb3acab4c 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -7,7 +7,10 @@ "include-component-in-tag": false, "prerelease": false, "bump-minor-pre-major": true, - "bump-patch-for-minor-pre-major": true + "bump-patch-for-minor-pre-major": true, + "extra-files": [ + "snap/snapcraft.yaml" + ] } } } diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 000000000..7bf0c1f0e --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,24 @@ +name: flagd +base: core20 +version: "v0.2.5" # x-release-please-version +summary: A feature flag daemon with a Unix philosophy +description: | + Flagd is a simple command line tool for fetching and evaluating feature flags for services. It is designed to conform with the OpenFeature specification. +grade: stable # must be 'stable' to release into candidate/stable channels +confinement: strict +architectures: + - build-on: amd64 + - build-on: arm64 +apps: + flagd: + command: bin/flagd + plugs: + - home + - network + - network-bind +parts: + home: + # See 'snapcraft plugins' + plugin: go + source-type: git + source: https://github.com/open-feature/flagd.git