Skip to content

Commit

Permalink
fix build snap (#2621)
Browse files Browse the repository at this point in the history
Co-authored-by: Sergei Mikhaltsov <[email protected]>
  • Loading branch information
metanovii and Sergei Mikhaltsov authored Mar 19, 2024
1 parent c1a943a commit c31a48f
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: k9s
base: core20
base: core22
version: 'v0.32.3'
summary: K9s is a CLI to view and manage your Kubernetes clusters.
description: |
Expand All @@ -14,33 +14,21 @@ architectures:
- armhf
- i386

plugs:
kube-config:
interface: personal-files
read:
- $HOME/.kube/config

apps:
k9s:
command: bin/k9s
plugs:
- network
- network-bind
- home
- kube-config

parts:
build:
plugins: go
source: https://github.com/derailed/k9s.git
plugin: go
source: https://github.com/derailed/k9s
source-type: git
source-tag: $SNAPCRAFT_PROJECT_VERSION
override-build: |
make test
make build
install $SNAPCRAFT_PART_BUILD/execs/k9s -D $SNAPCRAFT_PART_INSTALL/bin/k9s
mkdir -p $SNAPCRAFT_PART_INSTALL/bin
if [ ! -e $SNAPCRAFT_PART_INSTALL/bin/k9s ]; then
ln -s $SNAPCRAFT_PART_INSTALL/bin/k9s $SNAPCRAFT_PART_INSTALL/bin/k9s
fi
build-packages:
- build-essential
build-snaps:
- go

0 comments on commit c31a48f

Please sign in to comment.