Skip to content

Commit

Permalink
added brew template
Browse files Browse the repository at this point in the history
  • Loading branch information
ATGardner committed Aug 5, 2021
1 parent d5927d7 commit 6f482b4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 232 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ cli: $(OUT_DIR)/$(CLI_NAME)-linux-amd64.sha256 $(OUT_DIR)/$(CLI_NAME)-linux-arm6

.PHONY: cli-local
cli-local: $(OUT_DIR)/$(CLI_NAME)-$(shell go env GOOS)-$(shell go env GOARCH)
@cp $(OUT_DIR)/$(CLI_NAME)-$(shell go env GOOS)-$(shell go env GOARCH) /usr/local/bin/$(CLI_NAME)
@ln $(OUT_DIR)/$(CLI_NAME)-$(shell go env GOOS)-$(shell go env GOARCH) /usr/local/bin/$(CLI_NAME)-dev

.PHONY: cli-package
cli-package: $(OUT_DIR)/$(CLI_NAME)-$(shell go env GOOS)-$(shell go env GOARCH)
Expand Down
15 changes: 15 additions & 0 deletions brew/template.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
class Codefresh2 < Formula
desc "Codefresh CLI tool, V2"
homepage "http://cli.codefresh.io"
url "https://github.com/codefresh-io/cli-v2/releases/download/{{ VERSION }}/cf-darwin-amd64.tar.gz"
version "{{ VERSION }}"
sha256 "{{ SHA256 }}"

def install
bin.install "cf"
end

test do
system "#{bin}/codefresh version"
end
end
231 changes: 0 additions & 231 deletions build/ci.yml

This file was deleted.

0 comments on commit 6f482b4

Please sign in to comment.