Skip to content

Commit

Permalink
feat: adding snap publishing (#65)
Browse files Browse the repository at this point in the history
* build: started to add snap support

* chore: additional snap changes including workflow
  • Loading branch information
richardcase authored Aug 26, 2020
1 parent 0de2b44 commit 006a510
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 8 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: 1.13
- name: Setup snapcraft
run: |
sudo snap install snapcraft --classic
echo "$SNAP_TOKEN" | snapcraft login with -
snapcraft
env:
SNAP_TOKEN: ${{secrets.SNAP_LOGIN}}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
Expand Down
36 changes: 28 additions & 8 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@ archives:
- default
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
replacements:
darwin: Darwin
linux: Linux
windows: Windows
amd64: x86_64
darwin: macos
amd64: 64-bit
format: tar.gz
format_overrides:
- goos: windows
Expand All @@ -57,15 +55,37 @@ brews:
tap:
owner: fidelity
name: homebrew-tap

homepage: "https://github.com/fidelity/kconnect"

description: "The Kubernetes Connection Manager CLI"

dependencies:
- kubernetes-cli
- aws-iam-authenticator

folder: Formula

snapcrafts:
-
name: kconnect
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
replacements:
darwin: macos
amd64: 64-bit
publish: true
summary: "The Kubernetes Connection Manager CLI"
description: "kconnect is a CLI utility that can be used to discover and securely access Kubernetes clusters across multiple operating environments."
grade: devel # TODO: change to stable when we are ready to release
confinement: strict
license: Apache-2.0
base: bare
apps:
kconnect:
plugs: ["home", "network", "personal-files"]
plugs:
personal-files:
read:
- $HOME/.aws/credentials
- $HOME/.kube/config
write:
- $HOME/.aws/credentials
- $HOME/.kube/config


0 comments on commit 006a510

Please sign in to comment.