Skip to content

Commit 9ea52e6

Browse files
alexveeclealexpdp7
authored andcommitted
Package helm
1 parent 3f731f4 commit 9ea52e6

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

repo/helm.ubpkg.sky

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
gh = github_repo("helm/helm")
2+
3+
release = gh.latest_release()
4+
5+
os_str = {
6+
"linux": "linux",
7+
"macos": "darwin",
8+
"windows": "windows",
9+
}[os]
10+
11+
arch_str = {
12+
"x86_64": "amd64",
13+
"aarch64": "arm64",
14+
}[arch]
15+
16+
archive_format = {
17+
"linux": "tar.gz",
18+
"macos": "tar.gz",
19+
"windows": "zip",
20+
}[os]
21+
22+
23+
install_binary(extract_from_url("https://get.helm.sh/helm-{version}-{os_str}-{arch_str}.{archive_format}".format(os_str=os_str, arch_str=arch_str, version=release.name(), archive_format=archive_format), "helm"), "helm")

0 commit comments

Comments
 (0)