mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-13 21:56:38 +01:00
- Use GoBuilder container for building and release tags with goreleaser.
- Add version to cli.
This commit is contained in:
parent
4da940c19e
commit
9f099cf352
4 changed files with 76 additions and 6 deletions
3
main.go
3
main.go
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue