Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a formula for kots #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions HomebrewFormula/kots.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# typed: false
# frozen_string_literal: true

class Kots < Formula
desc "Kubernetes Off-The-Shelf (KOTS) Software"
homepage "https://docs.replicated.com/reference/kots-cli-getting-started"
version "1.120.0"

on_macos do
url "https://github.com/replicatedhq/kots/releases/download/v1.120.0/kots_darwin_all.tar.gz"
sha256 "cb4efebdb975a389330fc705b2c0ad7f144e1250cb2ac70aa72581edaab740dc"

def install
bin.install "kots"
end
end

on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/replicatedhq/kots/releases/download/v1.120.0/kots_linux_amd64.tar.gz"
sha256 "3082c7a13c55bdd8ef5388060eaacb7b8e114be5281ee06e1855948fa5b3dc83"

def install
bin.install "kots"
end
end
end

on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/replicatedhq/kots/releases/download/v1.120.0/kots_linux_arm64.tar.gz"
sha256 "4a298c57fadc5984f54e4a6013ae1bdfc973731297008c40a99ae74c48a126b5"

def install
bin.install "kots"
end
end
end
end
end