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

Include a "v" in version strings when releasing #1417

Merged
merged 2 commits into from
Mar 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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