mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
+helm.sh (#429)
* +helm.sh * add hacks because of no git clone * BSD sed is different * did it fail because of git commit * sed -i flag is problematic across BSD and non-BSD versions
This commit is contained in:
parent
03b05e28ce
commit
03944cd2da
1 changed files with 28 additions and 0 deletions
28
projects/helm.sh/package.yml
Normal file
28
projects/helm.sh/package.yml
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
distributable:
|
||||||
|
url: https://github.com/helm/helm/archive/refs/tags/v{{version}}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: helm/helm/releases/tags
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/helm
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
go.dev: ^1.19
|
||||||
|
tea.xyz/gx/make: '*'
|
||||||
|
script: |
|
||||||
|
sed 's/unreleased//g' Makefile > Makefile.patch
|
||||||
|
mv Makefile.patch Makefile
|
||||||
|
make build VERSION={{version}}
|
||||||
|
mkdir -p "{{ prefix }}"/bin
|
||||||
|
mv bin/helm "{{ prefix }}"/bin
|
||||||
|
# temporary sed hacks above until brewkit supports cloning git directly see issue: https://github.com/teaxyz/brewkit/issues/17
|
||||||
|
|
||||||
|
test:
|
||||||
|
script: |
|
||||||
|
helm create foo
|
||||||
|
test -d "foo/charts"
|
||||||
|
helm version | grep "GitTreeState:\"clean\""
|
||||||
|
helm version | grep "Version:\"{{version}}\""
|
Loading…
Reference in a new issue