1
0
mirror of https://github.com/containrrr/watchtower.git synced 2025-02-07 19:30:19 +02:00

646 Commits

Author SHA1 Message Date
yrien30
145fe6dbcb
Pre-update lifecycle hook (#793)
* Make watchtower skip update if pre-update lifecycle hook exits with a non-zero exit code
#649

* Make watchtower skip update if pre-update lifecycle hook exits with a non-zero exit code
#649

* Make watchtower skip update if pre-update lifecycle hook exits with a non-zero exit code
#649

* Make watchtower skip update if pre-update lifecycle hook exits with a non-zero exit code
#649

* Make watchtower skip update if pre-update lifecycle hook exits with a non-zero exit code #649

* Make watchtower skip update if pre-update lifecycle hook exits with a non-zero exit code #649

* Make watchtower skip update if pre-update lifecycle hook exits with a non-zero exit code #649

* Prevent starting new container if old one is not stopped because of lifecycle hook.

* Add null check for c.containerInfo.State in IsRunning

* Fixed that the container would not start

* Added test for preupdate

* EX_TEMPFAIL -> ExTempFail

* Added missing fuction ouput names

* Skip preupdate when container is restarting.
2021-06-24 00:36:33 +02:00
Amir Zarrinkafsh
dc12a1ac7f
feat: allow hostname override for notifiers (#994)
* feat: allow hostname override for email notifier

As it currently stands all notifiers utilise `os.Hostname` to populate their titles/subjects.

When utilising Docker with a bridged network if you set the hostname for a container to an external DNS hostname Docker's internal DNS resolver will override said hostname for all containers within the bridged network.

This change allows a user to specify what hostname should be represented in the email notifications without having to change the `os.Hostname`.

* feat: allow custom hostname for all notifiers

* docs: adjust notification hostname flag
2021-06-24 00:29:20 +02:00
nils måsén
f508c92ae0
* feat: custom user agent (#990)
* fix: move build meta to own package
  this allows it to be referenced from other packages without causing a cyclic dependency
* feat: custom user agent
2021-06-11 19:23:00 +02:00
allcontributors[bot]
b196629d04
docs: add zenjabba as a contributor (#983)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-06-07 15:45:57 +02:00
zenjabba
4e7b1e78dc
Update index.md (#976)
Fix up formatting for docker-compose.yml
2021-06-07 15:45:32 +02:00
nils måsén
dec6f84a70
test: fix metrics api test stability (#930)
* use httptest instead of host port binding
* restore matrix and remove artificial delay
* fix metrics api test expect calls
2021-05-25 16:42:11 +02:00
nils måsén
61b715abec
docs: remove stray paragraph in notifications (#949)
* docs: remove stray paragraph in notifications

fixes #946

* docs: add the lost paragraph to own page
2021-05-03 11:22:17 +02:00
allcontributors[bot]
91bbe74796
docs: add DasSkelett as a contributor (#944)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-04-27 22:19:20 +02:00
DasSkelett
6b155a111a
Allow running periodic updates with enabled HTTP API (#916)
* Allow running periodic updates with enabled HTTP API

* Add --http-api-periodic-polls to docs
2021-04-27 22:18:45 +02:00
nils måsén
e308521a95
docs: fix more auto-format casualties (#943) 2021-04-27 17:44:49 +02:00
nils måsén
0c53b7121e
ci: move docs to separate action (#942) 2021-04-27 15:32:54 +02:00
nils måsén
26dbc64b35
Documentation updates (#936)
* Update private-registries.md

* docs: fix codecov branch

* docs: clarify monitor and add head fail warning

* docs: remove unsupported features

* docs: add date format note and fix typo

* docs: 🌈

* docs: fix auto-format errors and linting

* docs: fix auto-format errors and linting
2021-04-27 11:34:24 +02:00
nils måsén
cc3ff5a588 fix more spelling mistakes v1.3.0 2021-04-24 20:33:13 +02:00
nils måsén
ef4873b166 fix goreleaser GHCR login 2021-04-24 20:11:36 +02:00
nils måsén
692f66bace fix goreleaser tags for ghcr.io 2021-04-24 19:43:17 +02:00
nils måsén
d0148ab796
fix manifest creation in release job 2021-04-24 19:04:16 +02:00
nils måsén
12467712a1
feat: check container config before update (#925)
* feat: check container config before restart
* fix: only skip when hostconfig and config differ
* fix: update test mocks to not fail tests
* test: add verify config tests
2021-04-24 18:29:05 +02:00
nils måsén
fdf6e46e7b
fix: use default http transport for head (#926)
note: still disables TLS verification to enable use with local regisitries
2021-04-24 18:25:05 +02:00
nils måsén
d38e52b5c6
fix: merge artifacts and broken shoutrrr tests (#929)
* test: add missing container test suite
* fix broken tests
* fix: remove duplicate merge artifact

Co-authored-by: Simon Aronsson <simme@arcticbit.se>
2021-04-24 15:42:31 +02:00
Simon Aronsson
dff8378778
Feat/head failure toggle (#928)
* feat: make head pull failure warning toggleable

* expect prometheus tests to go through EVENTUALLY

* wait for queue to be empty before checking test conditions

* clean up new head failure toggle

* fixup! clean up new head failure toggle

* test: add warn on head failure tests

* fix client interface and make tests hit more lines

* make all tests use NewClient instead of creating a struct pointer

* fix lint issues

* see if moving ubuntu out of the matrix solves test issue

Co-authored-by: nils måsén <nils@piksel.se>
2021-04-24 13:14:52 +02:00
nils måsén
6f281b727a
feat: update shoutrrr to v0.4.4 (#914) 2021-04-23 16:36:09 +02:00
nils måsén
b4cf17d33f
feat: make head pull failure warning toggleable (#912)
* feat: make head pull failure warning toggleable

* expect prometheus tests to go through EVENTUALLY

* wait for queue to be empty before checking test conditions

* clean up new head failure toggle

* fixup! clean up new head failure toggle

* test: add registry tests

* test: add warn on head failure tests

* fix client interface and make tests hit more lines

* make all tests use NewClient instead of creating a struct pointer

* fix lint issues

Co-authored-by: Simon Aronsson <simme@arcticbit.se>
2021-04-23 16:34:21 +02:00
allcontributors[bot]
23572add74
docs: add ksurl as a contributor (#917)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-04-22 15:13:42 +02:00
Simon Aronsson
058e3c6d48
Update bug_report.md 2021-04-21 10:17:41 +02:00
Simon Aronsson
028f19ac47
Move token logs to trace 2021-04-21 10:03:05 +02:00
Simon Aronsson
6a7e5a959b
Create SECURITY.md 2021-04-21 10:01:33 +02:00
ksurl
29f5c4b254
add ghcr (#850)
* add ghcr

* Update .github/workflows/release-dev.yaml

Co-authored-by: nils måsén <nils@piksel.se>

* Update .github/workflows/release.yml

Co-authored-by: nils måsén <nils@piksel.se>

* Apply suggestions from code review

I might be dyslectic

* Update .github/workflows/release.yml

Co-authored-by: nils måsén <nils@piksel.se>

* Update .github/workflows/release.yml

Co-authored-by: nils måsén <nils@piksel.se>

Co-authored-by: nils måsén <nils@piksel.se>
Co-authored-by: Simon Aronsson <simme@arcticbit.se>
2021-04-20 14:06:48 +02:00
Simon Aronsson
3de202a965
fix depends on behavior and simplify some of its logic (#908)
* fix depends on behavior and simplify some of its logic

* fix comments
2021-04-18 18:37:35 +02:00
nils måsén
4142f7966a
fix: move notify URL to trace log (#907) 2021-04-18 18:35:15 +02:00
nils måsén
6a9d985ce7
feat(log): use short image/container IDs in logs (#888) 2021-04-18 18:34:38 +02:00
nils måsén
62a6d31880
docs: suggest mounting localtime, not of timezone (#877) 2021-04-18 18:32:44 +02:00
nils måsén
bf8dec1b88
chore(ci): run code coverage on main push (#870)
* chore(ci): run code coverage on main push

* merge workflows for pushes to main

* add workflow dispatch for production releases

Co-authored-by: Simon Aronsson <simme@arcticbit.se>
2021-04-18 18:30:58 +02:00
nils måsén
b644ec6829
fix(notifier): don't panic on unconfigured notifier (#869) 2021-04-18 18:11:46 +02:00
nils måsén
3b60afe553
docs: remove the explicit file name from edit url (#879)
follow up from #846
2021-04-03 00:29:09 +02:00
nils måsén
a5ffb653df
chore(ci): fix default branch in Dockerfiles (#875) 2021-04-01 19:18:36 +02:00
Simon Aronsson
da56c215db
rem vals we dont need or use from the gr config 2021-03-29 18:19:08 +02:00
Simon Aronsson
fac88f9cd2
add version info to goreleasers ldflags 2021-03-29 18:01:05 +02:00
Simon Aronsson
69b7480b4d
permanently disable cgo for production releases v1.2.1 2021-03-28 23:48:47 +02:00
Simon Aronsson
bde9aec1c0
fix docker secrets v1.2.0 2021-03-28 22:28:19 +02:00
Simon Aronsson
b7f3e68d49
Update release.yml 2021-03-28 22:15:29 +02:00
Simon Aronsson
8448851987
fix tag name parsing, hopefully 2021-03-28 22:05:40 +02:00
Simon Aronsson
c4c0533bff
add dockerhub login step 2021-03-28 21:43:54 +02:00
Simon Aronsson
027584aca2
add gh token to goreleaser 2021-03-28 21:27:16 +02:00
Simon Aronsson
228dd75d7b
Update release-dev.yaml 2021-03-28 21:08:28 +02:00
nils måsén
9fa2fd82a6
feat: include additional info in startup (#809) 2021-03-28 21:04:11 +02:00
allcontributors[bot]
5e17ef6014
docs: add reinout as a contributor (#857)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-03-23 16:56:22 +01:00
Reinout van Rees
45168e8515
Doc fix: default interval is 24h instead of 5m (#856)
Probably due to the docker hub rate limiting, the default interval was changed from 5 minutes to 24 hours.
It is mentioned in the documentation for `--interval`, but not yet here :-)
2021-03-23 16:56:12 +01:00
nils måsén
738215a1f7
Update Shoutrrr to v0.4 (#810) 2021-03-13 08:58:11 +01:00
Zois Pagoulatos
60a6300f0e
Set different default branch for mkdocs edit (#846)
From mkdocs [documentation](https://www.mkdocs.org/user-guide/configuration/#edit_uri):

```
Note

On a few known hosts (specifically GitHub, Bitbucket and GitLab), the edit_uri is derived from the 'repo_url' and does not need to be set manually. Simply defining a repo_url will automatically populate the edit_uri configs setting.

For example, for a GitHub- or GitLab-hosted repository, the edit_uri would be automatically set as edit/master/docs/ (Note the edit path and master branch).

For a Bitbucket-hosted repository, the equivalent edit_uri would be automatically set as src/default/docs/ (note the src path and default branch).

To use a different URI than the default (for example a different branch), simply set the edit_uri to your desired string. If you do not want any "edit URL link" displayed on your pages, then set edit_uri to an empty string to disable the automatic setting.
```
2021-03-09 14:18:03 +01:00
Flavio Maria De Stefano
70c737cebd
Typo in --http-api (#841) 2021-03-02 11:38:51 +01:00