Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1417 from kinvolk/johananl/v-in-version-strings
Browse files Browse the repository at this point in the history
Include a "v" in version strings when releasing
  • Loading branch information
johananl authored Mar 5, 2021
2 parents e6c8dd0 + 33ee135 commit dc7324e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ builds:
- CGO_ENABLED=0
- GO111MODULE=on
ldflags:
- -X github.com/kinvolk/lokomotive/pkg/version.Version={{.Version}}
- -X github.com/kinvolk/lokomotive/pkg/version.Version={{.Tag}}
- -extldflags '-static'
flags:
- -buildmode=exe
Expand Down Expand Up @@ -35,3 +35,7 @@ release:

archives:
- wrap_in_directory: true
name_template: "{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"

checksum:
name_template: "{{ .ProjectName }}_{{ .Tag }}_checksums.txt"
4 changes: 2 additions & 2 deletions docs/quickstarts/packet.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ Download the latest `lokoctl` binary for your platform:
```console
export os=linux # For macOS, use `os=darwin`.

export release=$(curl -s https://api.github.com/repos/kinvolk/lokomotive/releases | jq -r '.[0].name' | tr -d v)
curl -LO "https://github.com/kinvolk/lokomotive/releases/download/v${release}/lokoctl_${release}_${os}_amd64.tar.gz"
export release=$(curl -s https://api.github.com/repos/kinvolk/lokomotive/releases | jq -r '.[0].name')
curl -LO "https://github.com/kinvolk/lokomotive/releases/download/${release}/lokoctl_${release}_${os}_amd64.tar.gz"
```

Extract the binary and copy it to a place under your `$PATH`:
Expand Down
4 changes: 2 additions & 2 deletions docs/quickstarts/tinkerbell.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ Download the latest `lokoctl` binary for your platform:
```console
export os=linux # For macOS, use `os=darwin`.

export release=$(curl -s https://api.github.com/repos/kinvolk/lokomotive/releases | jq -r '.[0].name' | tr -d v)
curl -LO "https://github.com/kinvolk/lokomotive/releases/download/v${release}/lokoctl_${release}_${os}_amd64.tar.gz"
export release=$(curl -s https://api.github.com/repos/kinvolk/lokomotive/releases | jq -r '.[0].name')
curl -LO "https://github.com/kinvolk/lokomotive/releases/download/${release}/lokoctl_${release}_${os}_amd64.tar.gz"
```

Extract the binary and copy it to a place under your `$PATH`:
Expand Down

0 comments on commit dc7324e

Please sign in to comment.