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

HomebrewFormula: add linux support #118

Merged
merged 1 commit into from
Nov 30, 2021
Merged
Show file tree
Hide file tree
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
9 changes: 8 additions & 1 deletion HomebrewFormula/kubectl-buildkit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@ class KubectlBuildkit < Formula

def install
system "make", "build", "VERSION=" + version
bin.install Dir["bin/darwin/kubectl-build*"]

if OS.mac?
bin.install Dir["bin/darwin/kubectl-build*"]
elsif OS.linux?
bin.install Dir["bin/linux/kubectl-build*"]
else
odie "Only Mac and Linux supported"
end
end

test do
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ documentation for more information.

## Getting started

### Installing on MacOS
### Installing on MacOS and Linux with Homebrew

We include a [Brew](https://docs.brew.sh/) Tap in this repo. First add the Tap with
```sh
Expand Down