This repository has been archived by the owner on Nov 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This should make it easier for folks to install the CLI on MacOS.
- Loading branch information
Daniel Hiltgen
committed
Mar 25, 2021
1 parent
7cb7096
commit 44201ab
Showing
3 changed files
with
39 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,24 @@ | ||
class KubectlBuildkit < Formula | ||
desc "BuildKit CLI for kubectl" | ||
homepage "https://github.com/vmware-tanzu/buildkit-cli-for-kubectl" | ||
url "https://github.com/vmware-tanzu/buildkit-cli-for-kubectl/archive/refs/tags/v0.1.2.tar.gz" | ||
license "Apache-2.0" | ||
head "https://github.com/kubernetes/kubernetes.git" | ||
|
||
livecheck do | ||
url :stable | ||
regex(/^v?(\d+(?:\.\d+)+)$/i) | ||
end | ||
|
||
depends_on "go" => :build | ||
|
||
def install | ||
system "make", "build", "VERSION=" + version | ||
bin.install Dir["bin/darwin/kubectl-build*"] | ||
end | ||
|
||
test do | ||
run_output = shell_output("#{bin}/kubectl-buildkit 2>&1") | ||
assert_match "BuildKit is a toolkit for converting source code", run_output | ||
end | ||
end |
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
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