Skip to content

Commit 0f03fe8

Browse files
authored
CR-5402 - added brew template (#47)
* added brew template * updated argo-workflows to 3.1.5
1 parent 760757a commit 0f03fe8

File tree

7 files changed

+54
-239
lines changed

7 files changed

+54
-239
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION=v0.0.52
1+
VERSION=v0.0.53
22
OUT_DIR=dist
33
YEAR?=$(shell date +"%Y")
44

@@ -61,7 +61,7 @@ cli: $(OUT_DIR)/$(CLI_NAME)-linux-amd64.sha256 $(OUT_DIR)/$(CLI_NAME)-linux-arm6
6161

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

6666
.PHONY: cli-package
6767
cli-package: $(OUT_DIR)/$(CLI_NAME)-$(shell go env GOOS)-$(shell go env GOARCH)

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@
1111
The new Codefresh CLI tool.
1212

1313
## Installation
14+
### Using brew:
15+
```bash
16+
# tap Codefresh homebrew repo
17+
brew tap codefresh-io/cli
18+
19+
# install cf2 CLI
20+
brew install cf2
21+
22+
# check the installation
23+
cf version
24+
```
25+
1426
### Mac
1527

1628
```bash

brew/template.rb

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
class CF2 < Formula
2+
desc "Codefresh CLI tool, V2"
3+
homepage "https://codefresh.io/"
4+
url "https://github.com/codefresh-io/cli-v2.git",
5+
tag: "v{{ version }}",
6+
revision: "{{ revision }}"
7+
license "Apache-2.0"
8+
9+
depends_on "go" => :build
10+
11+
def install
12+
system "make", "cli-package", "DEV_MODE=false"
13+
bin.install "dist/cf" => "cf"
14+
end
15+
16+
test do
17+
assert_match version.to_s, shell_output("#{bin}/cf version")
18+
19+
assert_match "must provide context name to use\"",
20+
shell_output("#{bin}/cf config use-context 2>&1", 1)
21+
end
22+
end

build/ci.yml

Lines changed: 0 additions & 231 deletions
This file was deleted.

docs/releases/release_notes.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,26 @@
11
### Installed Applications:
2-
* Argo CD [v2.1.0-rc1](https://github.com/codefresh-io/argo-cd/releases/tag/v2.1.0-rc1)
2+
* Argo CD [v2.1.0-rc2](https://github.com/codefresh-io/argo-cd/releases/tag/v2.1.0-rc2)
33
* Argo CD ApplicationSet Controller [2c62537a8e5a](https://github.com/argoproj-labs/applicationset/commit/2c62537a8e5a3d5aecad87b843870789b74bdf89)
44
* Argo Events [v1.4.0](https://github.com/argoproj/argo-events/releases/tag/v1.4.0)
55
* Argo Rollouts [v1.0.4](https://github.com/argoproj/argo-rollouts/releases/tag/v1.0.4)
6-
* Argo Workflows [v3.1.3](https://github.com/argoproj/argo-workflows/releases/tag/v3.1.3)
6+
* Argo Workflows [v3.1.5](https://github.com/argoproj/argo-workflows/releases/tag/v3.1.5)
7+
8+
### Using brew:
9+
```bash
10+
# tap Codefresh homebrew repo
11+
brew tap codefresh-io/cli
12+
13+
# install cf2 CLI
14+
brew install cf2
15+
16+
# check the installation
17+
cf version
18+
```
719

820
### Linux
921
```bash
1022
# download and extract the binary
11-
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.52/cf-linux-amd64.tar.gz | tar zx
23+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.53/cf-linux-amd64.tar.gz | tar zx
1224

1325
# move the binary to your $PATH
1426
mv ./cf-linux-amd64 /usr/local/bin/cf
@@ -20,7 +32,7 @@ cf version
2032
### Mac
2133
```bash
2234
# download and extract the binary
23-
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.52/cf-darwin-amd64.tar.gz | tar zx
35+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.53/cf-darwin-amd64.tar.gz | tar zx
2436

2537
# move the binary to your $PATH
2638
mv ./cf-darwin-amd64 /usr/local/bin/cf

manifests/argo-workflows/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
resources:
4-
- https://github.com/argoproj/argo-workflows/releases/download/v3.1.3/install.yaml
4+
- https://github.com/argoproj/argo-workflows/releases/download/v3.1.5/install.yaml
55

66
patches:
77
# reset the crbs to `subject.namespace: default`, so that argo-workflows will later change them to the actual ns

manifests/runtime.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
namespace: "{{ namespace }}"
66
spec:
77
defVersion: 1.0.0
8-
version: 0.0.52
8+
version: 0.0.53
99
bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd
1010
components:
1111
- name: events

0 commit comments

Comments
 (0)