mirror of
https://github.com/containrrr/watchtower.git
synced 2025-03-03 15:32:37 +02:00
Merge pull request #134 from v2tec/fix-version-information
Fix the version information output.
This commit is contained in:
commit
4c63746feb
@ -4,10 +4,6 @@ build:
|
|||||||
# Default is `main.go`
|
# Default is `main.go`
|
||||||
main: ./main.go
|
main: ./main.go
|
||||||
|
|
||||||
# Custom ldflags.
|
|
||||||
# Default is `-s -w`
|
|
||||||
ldflags: -s -w
|
|
||||||
|
|
||||||
# GOOS list to build in.
|
# GOOS list to build in.
|
||||||
# For more info refer to https://golang.org/doc/install/source#environment
|
# For more info refer to https://golang.org/doc/install/source#environment
|
||||||
# Defaults are darwin and linux
|
# Defaults are darwin and linux
|
||||||
|
4
main.go
4
main.go
@ -21,6 +21,8 @@ import (
|
|||||||
const DockerAPIMinVersion string = "1.24"
|
const DockerAPIMinVersion string = "1.24"
|
||||||
|
|
||||||
var version = "master"
|
var version = "master"
|
||||||
|
var commit = "unknown"
|
||||||
|
var date = "unknown"
|
||||||
|
|
||||||
var (
|
var (
|
||||||
client container.Client
|
client container.Client
|
||||||
@ -37,7 +39,7 @@ func init() {
|
|||||||
func main() {
|
func main() {
|
||||||
app := cli.NewApp()
|
app := cli.NewApp()
|
||||||
app.Name = "watchtower"
|
app.Name = "watchtower"
|
||||||
app.Version = version
|
app.Version = version + " - " + commit + " - " + date
|
||||||
app.Usage = "Automatically update running Docker containers"
|
app.Usage = "Automatically update running Docker containers"
|
||||||
app.Before = before
|
app.Before = before
|
||||||
app.Action = start
|
app.Action = start
|
||||||
|
Loading…
x
Reference in New Issue
Block a user