Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
Add auto-release. Close #6
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienBreux committed Aug 27, 2017
1 parent a95337f commit 999afa5
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .circleci/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ jobs:
command: |
make test | tee ${TEST_RESULTS}/go-test.out
- deploy:
requires:
- test
filters:
tags:
only: /v[0-9]+(\.[0-9]+)*/
commands:
- curl -sL https://git.io/goreleaser | bash

- store_artifacts:
path: /tmp/test-results
destination: raw-test-output
Expand Down
9 changes: 9 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
builds:
- binary: pody
goos:
- windows
- darwin
- linux
goarch:
- amd64
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/jroimartin/gocui"
)

var version = "master"
var LOG_MOD string = "pod"
var NAMESPACE string = "default"

Expand Down
5 changes: 2 additions & 3 deletions version.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,15 @@ The following options can be passed to any command:

const APP = "Pody"
const AUTHOR = "@JulienBreux"
const VERSION = "0.1.0"

// Get full banner of version
func versionFull() string {
return fmt.Sprintf("%s %s - By %s", APP, VERSION, AUTHOR)
return fmt.Sprintf("%s %s - By %s", APP, version, AUTHOR)
}

// Get only banner (used in title bar view)
func versionBanner() string {
return fmt.Sprintf(" %s %s", APP, VERSION)
return fmt.Sprintf(" %s %s", APP, version)
}

// Get only author (used in title bar view)
Expand Down

0 comments on commit 999afa5

Please sign in to comment.