mirror of
https://github.com/ivabus/pantry
synced 2024-11-25 09:55:06 +03:00
fix(kubectx.dev) (#5510)
* Fix kubectx and kubens * ignore versions older than 0.9 * Update package.yml --------- Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
parent
b68056b989
commit
2eda80c939
1 changed files with 13 additions and 11 deletions
|
@ -1,25 +1,27 @@
|
||||||
distributable:
|
distributable:
|
||||||
url: https://github.com/ahmetb/kubectx/archive/refs/tags/v{{version}}.tar.gz
|
url: git+https://github.com/ahmetb/kubectx.git
|
||||||
strip-components: 1
|
ref: ${{version.tag}}
|
||||||
|
|
||||||
versions:
|
versions:
|
||||||
github: ahmetb/kubectx
|
github: ahmetb/kubectx
|
||||||
|
ignore: /^v?0\.[0-8](\.|$)/ # prior to 0.9 kubectx was a bash script
|
||||||
|
|
||||||
provides:
|
provides:
|
||||||
- bin/kubectx
|
- bin/kubectx
|
||||||
- bin/kubens
|
- bin/kubens
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
kubernetes.io/kubectl: ^1.26.2
|
github.com/junegunn/fzf: '*'
|
||||||
gnu.org/bash: ^5.1
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
script: |
|
dependencies:
|
||||||
mkdir -p "{{ prefix }}"/bin
|
go.dev: ^1.20
|
||||||
mv kubectx "{{ prefix }}"/bin
|
env:
|
||||||
mv kubens "{{ prefix }}"/bin
|
CGO_ENABLED: '0'
|
||||||
|
script:
|
||||||
|
- go build -o '{{ prefix }}/bin/kubectx' ./cmd/kubectx
|
||||||
|
- go build -o '{{ prefix }}/bin/kubens' ./cmd/kubens
|
||||||
|
|
||||||
test:
|
test:
|
||||||
script: |
|
- kubectx --help
|
||||||
kubectx --help
|
- kubens --help
|
||||||
kubens --help
|
|
||||||
|
|
Loading…
Reference in a new issue