Skip to content

Commit

Permalink
feat: snap (#211)
Browse files Browse the repository at this point in the history
Adding snap configuration and badge

Signed-off-by: Skye Gill <gill.skye95@gmail.com>
Signed-off-by: Alex <alexsimonjones@gmail.com>
Co-authored-by: Skye Gill <gill.skye95@gmail.com>
  • Loading branch information
AlexsJones and skyerus authored Nov 22, 2022
1 parent 418b9ef commit c619844
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
<a href="https://github.com/open-feature/flagd/releases">
<img src="https://img.shields.io/github/release/open-feature/flagd/all.svg">
</a>
<a href="https://snapcraft.io/flagd">
<img alt="Get it from the Snap Store" src="https://snapcraft.io/static/images/badges/en/snap-store-black.svg" width=100px;/>
</a>
</p>

## Features
Expand Down
26 changes: 26 additions & 0 deletions docs/snap.md
Original file line number Diff line number Diff line change
@@ -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_<VERSION>_amd64.snap --release=candidate
```

#### Promotion

```
snapcraft promote flagd --from-channel=candidate --to-channel=stable
```
5 changes: 4 additions & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
}
}
24 changes: 24 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -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

1 comment on commit c619844

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Go Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.30.

Benchmark suite Current: c619844 Previous: 187f0f9 Ratio
BenchmarkConnectService_ResolveBoolean/happy_path 3917 ns/op 968 B/op 23 allocs/op 2845 ns/op 264 B/op 6 allocs/op 1.38
BenchmarkConnectService_ResolveString/happy_path 3902 ns/op 1000 B/op 24 allocs/op 2872 ns/op 280 B/op 6 allocs/op 1.36
BenchmarkConnectService_ResolveFloat/happy_path 4183 ns/op 1040 B/op 24 allocs/op 2775 ns/op 264 B/op 6 allocs/op 1.51
BenchmarkConnectService_ResolveInt/happy_path 3925 ns/op 968 B/op 23 allocs/op 2835 ns/op 264 B/op 6 allocs/op 1.38
BenchmarkConnectService_ResolveObject/happy_path 6033 ns/op 2400 B/op 44 allocs/op 4342 ns/op 1424 B/op 21 allocs/op 1.39

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.