mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-13 21:56:38 +01:00
Fix the version information output. Additionally output the commit hash and the build date.
This commit is contained in:
parent
e948aa946f
commit
4ef9a7ab97
2 changed files with 3 additions and 5 deletions
4
main.go
4
main.go
|
|
@ -21,6 +21,8 @@ import (
|
|||
const DockerAPIMinVersion string = "1.24"
|
||||
|
||||
var version = "master"
|
||||
var commit = "unknown"
|
||||
var date = "unknown"
|
||||
|
||||
var (
|
||||
client container.Client
|
||||
|
|
@ -37,7 +39,7 @@ func init() {
|
|||
func main() {
|
||||
app := cli.NewApp()
|
||||
app.Name = "watchtower"
|
||||
app.Version = version
|
||||
app.Version = version + " - " + commit + " - " + date
|
||||
app.Usage = "Automatically update running Docker containers"
|
||||
app.Before = before
|
||||
app.Action = start
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue