Commit Graph

27 Commits (d5dc0dac1fd725ccb9b76ed7a3cd8aac1f1befb0)

Author SHA1 Message Date
Simon Aronsson 46ffa16ee2
add tests for check action, resolve wt cleanup bug (#284)
add unit tests for the check action to allow for some
refactoring and bug fixing without having to worry about
breaking stuff.

resolve watchtower cleanup bug by adding an initial 1 second sleep
in the check action. without the sleep, the docker client returns an
empty array, which is why we were left with two watchtowers.
6 years ago
Simon Aronsson 66f38bd302 fix linting errors 6 years ago
Simon Aronsson d29b6cf93e add a monitor only flag 6 years ago
Simon Aronsson 7db0aed2a5 print to log if multiple watchtower instances are detected 6 years ago
Simon Aronsson 1b82da1ab7 Setup a working pipeline
* add tests to ensure function even after switching docker client api version
* switch docker client api version to remove import of Sirupsen and get rid of the casing workaround
* migrate from glide to dep to go modules
* rewrite ci workflow
  * only run publish on version tags
  * only run build on branches
  * update goreleaser config
  * disable automated latest tag push
* remove dependency to v2tec/docker-gobuilder
* remove dead code and files
* add golands .idea folder to gitignore
* add label to released docker images
* add test reporting, add some unit tests
* change test output dir
* fix goreleaser versions
* add debug output for circleci and goreleaser
* disable cgo
6 years ago
Simon Aronsson ab299b59f8 change repo paths 6 years ago
Fabrizio Steiner 026a04b59b implemented enableLabel by a Filter 7 years ago
Robotex 6197d96635 Add --stop-timeout parameter 7 years ago
ubergesundheit d989254b1a change upper case S in sirupsen to lower case to avoid build error 7 years ago
Fabrizio Steiner 714e30f532 Output error message when a pull failed. 7 years ago
Fabrizio Steiner bee4607d9a Output "Checking containers for updated images" as debug entry. fixes GH-66 8 years ago
Fabrizio Steiner eda5391d0a go fmt... 8 years ago
Fabrizio Steiner f1822f9cd2 Renamed centurylink to v2tec. 8 years ago
David Gardner 37f7248233 Merge pull request #26 from rosscado/auth
Upgrade client to fix build, authentication, and image issues
8 years ago
Ross Cadogan ef430b791a Add auth config, registry auth fails silently without 8 years ago
Ross Cadogan e011d3e0d2 Discard obsolete samalba/dockerclient library and dependent tests 8 years ago
Ross Cadogan c4efc83875 Improve error handling 8 years ago
Harry Walter ac7375a1da Skip restarting 9 years ago
Brian DeHamer b0910ee20b Add support for whitelist of monitored containers 9 years ago
Brian DeHamer d6321bf8dc Add godoc comments 9 years ago
Brian DeHamer dd80aa4a0d Support for --cleanup flag
The --cleanup flag will cause watchtower to automatically remove the old
image after a container is restart with a new image.
9 years ago
Brian DeHamer 812fb60805 Handle errors without halting
If we receive an error while trying to shutdown/startup a particular
container we don't want to immediately terminate the current update
cycle. Instead we should continue processing the remaining containers
and simply log the error.
9 years ago
Brian DeHamer b7424e5c47 Fix issue where updated containers aren't stopped
Used 'break' instead of 'continue' resulting in the termination of the
stop container loop any time the watchtower container is encountered.
9 years ago
Brian DeHamer bfed95ecaf Support --debug flag
Also adds better logging output
9 years ago
Brian DeHamer a8dec129f5 Refactor Client interface 9 years ago
Brian DeHamer 4ba21639a0 Allow user-configurable DOCKER_HOST 9 years ago
Brian DeHamer 00f2875abf Refactoring & renaming 9 years ago