fix build snap (#2621)

Co-authored-by: Sergei Mikhaltsov <s.mikhaltsov@leadgid.ru>
mine
Sergey Mikhaltsov 2024-03-19 18:46:18 +03:00 committed by GitHub
parent c1a943a639
commit c31a48fbee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 18 deletions

View File

@ -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: |
@ -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