Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Add brew Formula for a Tap
Browse files Browse the repository at this point in the history
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
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
24 changes: 24 additions & 0 deletions HomebrewFormula/kubectl-buildkit.rb
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
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,20 @@ documentation for more information.

## Getting started

### Installing on MacOS

We include a [Brew](https://docs.brew.sh/) Tap in this repo. First add the Tap with
```sh
brew tap vmware-tanzu/buildkit-cli-for-kubectl https://github.com/vmware-tanzu/buildkit-cli-for-kubectl
```

Then you can install with
```sh
brew install kubectl-buildkit
```

Keep up-to-date with `brew upgrade kubectl-buildkit` (or `brew upgrade` to upgrade everything)

### Installing on Windows

We produce [Choco](https://docs.chocolatey.org/) compatible packages in our https://github.com/vmware-tanzu/buildkit-cli-for-kubectl/releases
Expand Down
1 change: 1 addition & 0 deletions docs/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ git log --oneline --no-merges --no-decorate v0.1.1..v0.1.2
* Rephrase commit messages where necessary to better summarize the fix for readability
* Have another maintainer review the release
* Publish the release
* Update the `HomebrewFormula/kubectl-buildkit.rb` to pin to the new version


## When you're making release CI changes
Expand Down

0 comments on commit 44201ab

Please sign in to comment.