- Use GoBuilder container for building and release tags with goreleaser.

- Add version to cli.
This commit is contained in:
Fabrizio Steiner 2017-02-02 18:37:12 +01:00
parent 4da940c19e
commit 9f099cf352
4 changed files with 76 additions and 6 deletions

View file

@ -20,6 +20,8 @@ import (
// watchtower. Currently we require at least API 1.24 and therefore Docker 1.12 or later.
const DockerAPIMinVersion string = "1.24"
var version = "master"
var (
client container.Client
scheduleSpec string
@ -34,6 +36,7 @@ func init() {
func main() {
app := cli.NewApp()
app.Name = "watchtower"
app.Version = version
app.Usage = "Automatically update running Docker containers"
app.Before = before
app.Action = start