Added ln check for snap (#2357)
* Added ln check for snap Realised that if you manually created (or already had) a ln it would cause the build to fail. So added in a check to see if it exists. Moved commands out of prime-override as it didnt really add anything and made it harder to read * Version no. update to 0.29.1 The snap package was being built with 0.29.1 but is presenting as 0.27 still (locally and in ubuntu snap store)mine
parent
17ad294ac2
commit
7897fb0eef
|
|
@ -22,3 +22,4 @@ faas
|
||||||
demos
|
demos
|
||||||
/code
|
/code
|
||||||
kind
|
kind
|
||||||
|
*.snap
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
name: k9s
|
name: k9s
|
||||||
base: core20
|
base: core20
|
||||||
version: 'v0.27.4'
|
version: 'v0.29.1'
|
||||||
summary: K9s is a CLI to view and manage your Kubernetes clusters.
|
summary: K9s is a CLI to view and manage your Kubernetes clusters.
|
||||||
description: |
|
description: |
|
||||||
K9s is a CLI to view and manage your Kubernetes clusters. By leveraging a terminal UI, you can easily traverse Kubernetes resources and view the state of your clusters in a single powerful session.
|
K9s is a CLI to view and manage your Kubernetes clusters. By leveraging a terminal UI, you can easily traverse Kubernetes resources and view the state of your clusters in a single powerful session.
|
||||||
|
|
@ -38,11 +38,9 @@ parts:
|
||||||
make test
|
make test
|
||||||
make build
|
make build
|
||||||
install $SNAPCRAFT_PART_BUILD/execs/k9s -D $SNAPCRAFT_PART_INSTALL/bin/k9s
|
install $SNAPCRAFT_PART_BUILD/execs/k9s -D $SNAPCRAFT_PART_INSTALL/bin/k9s
|
||||||
override-prime: |
|
|
||||||
mkdir -p $SNAPCRAFT_PART_INSTALL/bin
|
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
|
ln -s $SNAPCRAFT_PART_INSTALL/bin/k9s $SNAPCRAFT_PART_INSTALL/bin/k9s
|
||||||
|
fi
|
||||||
build-packages:
|
build-packages:
|
||||||
- build-essential
|
- build-essential
|
||||||
|
|
||||||
prime:
|
|
||||||
- $build/bin/k9s
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue