Skip to content

Commit

Permalink
Add otel-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpdp7 committed Apr 10, 2024
1 parent ba873b5 commit 976840b
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions repo/otel-cli.ubpkg.sky
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
gh = github_repo("equinix-labs/otel-cli")

release = gh.latest_release()
version_str = release.name().removeprefix("v")

os_str = {
"linux": "linux",
"macos": "darwin",
"windows": "windows",
}[os]

arch_str = {
"x86_64": "amd64",
"aarch64": "arm64",
}[arch]


archive_format = {
"linux": "tar.gz",
"macos": "tar.gz",
"windows": "zip",
}[os]

asset = release.get_asset_url("otel-cli_{version_str}_{os_str}_{arch_str}.{archive_format}".format(version_str=version_str, os_str=os_str, arch_str=arch_str, archive_format=archive_format))

install_binary(extract_from_url(asset, "otel-cli"), "otel-cli")

0 comments on commit 976840b

Please sign in to comment.