-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Marvin Beckers <mail@embik.me>
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
class Kubeone < Formula | ||
desc "Automates Kubernetes cluster operations on any cloud or edge infrastructure" | ||
homepage "https://docs.kubermatic.com/kubeone/v1.8" | ||
url "https://github.com/kubermatic/kubeone/archive/refs/tags/v1.8.0.tar.gz" | ||
sha256 "d4279f0f49fee6db6e9ce8d88cf19d5411b69ad85f4ff4ac514b31a676a1c311" | ||
license "Apache-2.0" | ||
|
||
head "https://github.com/kubermatic/kubeone.git", branch: "main" | ||
|
||
depends_on "go" => :build | ||
depends_on "opentofu" => :optional | ||
depends_on "terraform" => :optional | ||
|
||
def install | ||
Check failure on line 14 in Formula/kubeone.rb GitHub Actions / test-bot (macos-14)`brew install --verbose --build-bottle embik/tap/kubeone` failed on macOS Sonoma (14) on Apple Silicon!
|
||
ENV["CGO_ENABLED"] = "0" | ||
ldflags = %W[ | ||
-s -w | ||
-X k8c.io/kubeone/pkg/cmd.defaultKubeVersion=v1.29.5 | ||
-X k8c.io/kubeone/pkg/cmd.version=v#{version} | ||
-X k8c.io/kubeone/pkg/cmd.date=#{time.iso8601} | ||
] | ||
|
||
system "go", "build", *std_go_args(ldflags:), "." | ||
generate_completions_from_executable(bin/"kubeone", "completion") | ||
end | ||
|
||
test do | ||
system "#{bin}/kubeone", "--help" | ||
end | ||
end |