Skip to content

Commit

Permalink
Bump version to 0.3.0 - consolidate all versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
sevagh committed Jul 12, 2017
1 parent 08daa1e commit 158f4f3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
VERSION := 0.2.0
VERSION := 0.3.0
RELEASEBIN := $(CURDIR)/goat
INSTALLBIN := /usr/bin/goat

build:
@go build .
@go build -ldflags "-X main.VERSION=$(VERSION)" .

install:
@go install .
Expand All @@ -26,4 +26,4 @@ install_release:

rpm:
@rpmlint specfile.spec
@rpmbuild -ba specfile.spec --define "_sourcedir $$PWD"
@rpmbuild -ba specfile.spec --define "_sourcedir $$PWD" --define "_version $(VERSION)"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Goat is systemd-based (you can download the binary and run it yourself for alter
Install the rpm from the releases page, which enables it in systemd automatically:

```
$ sudo yum install -y https://github.com/sevagh/goat/releases/download/0.2.0/goat-0.2.0-1.fc25.x86_64.rpm
$ sudo yum install -y https://github.com/sevagh/goat/releases/download/0.3.0/goat-0.3.0-1.fc25.x86_64.rpm
$ sudo systemctl enable goat
$ sudo systemctl start goat
$ ...
Expand Down
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (

//PREFIX defines the prefix to use for all tags and labels
var PREFIX = "GOAT"
var VERSION string

func main() {
usage := `goat - EC2/EBS utility
Expand All @@ -26,7 +27,7 @@ Options:
--debug Interactive prompts to continue between phases
-h --help Show this screen.
--version Show version.`
arguments, _ := docopt.Parse(usage, nil, true, "goat 0.2", false)
arguments, _ := docopt.Parse(usage, nil, true, fmt.Sprintf("goat %s", VERSION), false)

log.SetOutput(os.Stderr)
logLevel := arguments["--log-level"].(string)
Expand Down
2 changes: 1 addition & 1 deletion specfile.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%define pkgname goat

Name: %{pkgname}
Version: 0.2.0
Version: %{_version}
Release: 1%{?dist}
Summary: Attach and mount EBS volumes

Expand Down

0 comments on commit 158f4f3

Please sign in to comment.