Skip to content

Commit 3d6172a

Browse files
authored
Fix goreleaser config to allow versioned installation and instructions (cnoe-io#539)
Signed-off-by: Pankaj Walke <punkwalker@gmail.com>
1 parent c003a60 commit 3d6172a

2 files changed

Lines changed: 41 additions & 5 deletions

File tree

.goreleaser.yaml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
version: 2
12
project_name: idpbuilder
23

34
before:
@@ -27,7 +28,8 @@ builds:
2728
- goos: linux
2829
goarch: '386'
2930
brews:
30-
- name: idpbuilder
31+
# For non version installations
32+
- name: "idpbuilder"
3133
homepage: "https://cnoe.io"
3234
repository:
3335
owner: cnoe-io
@@ -40,7 +42,22 @@ brews:
4042
install: |
4143
bin.install "idpbuilder"
4244
test: |
43-
system "#{bin}/idpbuilder --version"
45+
system "#{bin}/idpbuilder version"
46+
# For versioned and nightly installations
47+
- name: "{{ if contains .Tag \"nightly\" }}idpbuilder@nightly{{ else }}idpbuilder@{{ .Major }}.{{ .Minor }}.{{ .Patch }}{{ end }}"
48+
homepage: "https://cnoe.io"
49+
repository:
50+
owner: cnoe-io
51+
name: homebrew-tap
52+
token: "{{ .Env.HOMEBREW_TOKEN }}"
53+
commit_author:
54+
name: "CNOEAutomation"
55+
email: "noreply@cnoe.io"
56+
directory: Formula
57+
install: |
58+
bin.install "idpbuilder"
59+
test: |
60+
system "#{bin}/idpbuilder version"
4461
archives:
4562
- format: tar.gz
4663
name_template: >-

README.md

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,26 @@ This can be useful in several ways:
1616
* Use within CI to perform integration testing.
1717
* Use as a local development environment for platform engineers.
1818

19-
## Getting Started
19+
## Installation
20+
### Using [Homebrew](https://brew.sh)
21+
+ Stable Version
22+
23+
```bash
24+
brew install cnoe-io/tap/idpbuilder
25+
```
26+
+ Specific Stable Version
27+
28+
```bash
29+
brew install cnoe-io/tap/idpbuilder@<version>
30+
```
31+
+ Nightly Version
2032

21-
The easiest way to get started is to grab the idpbuilder binary for your platform and run it. You can visit our [nightly releases](https://github.com/cnoe-io/idpbuilder/releases/latest) page to download the version for your system, or run the following commands:
33+
```bash
34+
brew install cnoe-io/tap/idpbuilder@nightly
35+
```
36+
37+
### From Releases
38+
Another way to get started is to grab the idpbuilder binary for your platform and run it. You can visit our [releases](https://github.com/cnoe-io/idpbuilder/releases) page to download the version for your system, or run the following commands:
2239

2340
```bash
2441
arch=$(if [[ "$(uname -m)" == "x86_64" ]]; then echo "amd64"; else uname -m; fi)
@@ -37,13 +54,15 @@ curl -vskL -O https://github.com/cnoe-io/idpbuilder/releases/latest/download/idp
3754
tar xvzf idpbuilder-linux-amd64.tar.gz idpbuilder
3855
```
3956

57+
## Getting Started
58+
4059
You can then run idpbuilder with the create argument to spin up your CNOE IDP:
4160

4261
```bash
4362
./idpbuilder create
4463
```
4564

46-
For more detailed information, checkout our [documentation website](https://cnoe.io/docs/reference-implementation/idpbuilder) on getting started with idpbuilder.
65+
For more detailed information, checkout our [documentation](https://cnoe.io/docs/idpbuilder) on getting started with idpbuilder.
4766

4867
## Community
4968

0 commit comments

Comments
 (0)