Skip to content

Commit

Permalink
Fix release (#18)
Browse files Browse the repository at this point in the history
* Fix checking for new release

Signed-off-by: Friedrich Gonzalez <[email protected]>

* Fix reference to download binary

Signed-off-by: Friedrich Gonzalez <[email protected]>

* Adjust changelog

Signed-off-by: Friedrich Gonzalez <[email protected]>

* Create changelog for fix

Signed-off-by: Friedrich Gonzalez <[email protected]>

---------

Signed-off-by: Friedrich Gonzalez <[email protected]>
  • Loading branch information
friedrichg authored Aug 1, 2023
1 parent 0c26713 commit 9136782
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Order should be `CHANGE`, `FEATURE`, `ENHANCEMENT`, and `BUGFIX`

## v0.11.1
* [BUGFIX] Fix check for new version
* [BUGFIX] Fix reference to download the binaries

## v0.11.0

* [CHANGE] Rename to cortexproject/cortex-tools #2
Expand Down
4 changes: 2 additions & 2 deletions changelogs/v0.11.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

```console
# download the binary (adapt os and arch as needed)
$ curl -fSL -o "cortextool" "https://github.com/grafana/cortex-tools/releases/download/v0.11.0/cortextool_0.11.0_linux_x86_64"
$ curl -fSL -o "cortextool" "https://github.com/cortexproject/cortex-tools/releases/download/v0.11.0/cortextool_0.11.0_linux_x86_64"

# make it executable
$ chmod a+x "cortextool"
Expand All @@ -32,7 +32,7 @@ $ ./cortextool --help

```console
# download the binary (adapt os and arch as needed)
$ curl -fSL -o "benchtool" "https://github.com/grafana/cortex-tools/releases/download/v0.11.0/benchtool_0.11.0_linux_x86_64"
$ curl -fSL -o "benchtool" "https://github.com/cortexproject/cortex-tools/releases/download/v0.11.0/benchtool_0.11.0_linux_x86_64"

# make it executable
$ chmod a+x "benchtool"
Expand Down
34 changes: 34 additions & 0 deletions changelogs/v0.11.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# v0.11.0 Release

## Changes

* [BUGFIX] Fix check for new version
* [BUGFIX] Fix reference to download the binaries

## Installation

## cortextool

```console
# download the binary (adapt os and arch as needed)
$ curl -fSL -o "cortextool" "https://github.com/cortexproject/cortex-tools/releases/download/v0.11.1/cortextool_0.11.1_linux_x86_64"

# make it executable
$ chmod a+x "cortextool"

# have fun :)
$ ./cortextool --help
```

## benchtool

```console
# download the binary (adapt os and arch as needed)
$ curl -fSL -o "benchtool" "https://github.com/cortexproject/cortex-tools/releases/download/v0.11.1/benchtool_0.11.1_linux_x86_64"

# make it executable
$ chmod a+x "benchtool"

# have fun :)
$ ./benchtool --help
```
2 changes: 1 addition & 1 deletion pkg/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func CheckLatest() {
func getLatestFromGitHub() (string, error) {
fmt.Print("checking latest version... ")
c := github.NewClient(nil)
repoRelease, resp, err := c.Repositories.GetLatestRelease(context.Background(), "grafana", "cortex-tools")
repoRelease, resp, err := c.Repositories.GetLatestRelease(context.Background(), "cortexproject", "cortex-tools")
if err != nil {
log.WithFields(log.Fields{"err": err}).Debugln("error while retrieving the latest version")
return "", errUnableToRetrieveLatestVersion
Expand Down

0 comments on commit 9136782

Please sign in to comment.