Commit Graph

767 Commits (403c600b9914142b770d9a4dd8de0df2a2c36970)
 

Author SHA1 Message Date
nils måsén 26fba69169 test: refactor client tests
should not be explicitly telling what they are testing and the requirements
fixed the test data so that it doesn't contain discrepancies
fully reset the mock client (no shared state) and only support the calls that is expected
3 years ago
Simon Aronsson 3bf934027f
Create pull_request_template.md (#1110) 3 years ago
nils måsén 4a66a693c6
chore(deps): bump shoutrrr and containrd (#1088)
- update containrrr/shoutrrr to latest v0.5 patch (v0.5.1 => v0.5.2)
- update containerd/containerd to a "safe" version (v1.5.5 => v1.5.7)
3 years ago
allcontributors[bot] db13bdec3c
docs: add modem7 as a contributor for doc (#1083)
* docs: update README.md [skip ci]

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

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
3 years ago
modem7 1ec5234898
Update README.md (#1077)
Added new line to Quick Start to make it easier to read at glance.
3 years ago
nils måsén 47a640b764
update dependencies (sane go.mod) (#1061) 3 years ago
nils måsén 697397f289
feat(log): add context fields to lifecycle events (#1007) 3 years ago
nils måsén cd0ec88764
fix(notifications): default templates and logic (#1010)
* fix(notifications): default templates and logic
* fix multi-entry report notifs and add test
* add tests for log queueing
3 years ago
nils måsén fc31c6eb26
feat(shoutrrr): update to v0.5 (#1055)
* feat(shoutrrr): update to v0.5
* fix slack URL and tests
* add tests for slack icon override
* bump shoutrrr to v0.5.1
3 years ago
Jeremiah Boby bd74c05614
Use golang:1.15 in ECR credential helper example (#965)
* Use golang:1.15 in ECR credential helper example

* Update docs/private-registries.md

Co-authored-by: Simon Aronsson <simme@arcticbit.se>

Co-authored-by: Simon Aronsson <simme@arcticbit.se>
3 years ago
allcontributors[bot] 52fe3656a6
docs: add djquan as a contributor for doc (#1038)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
3 years ago
Dan Quan c33bb05396
docs: remove broken badge and fix docker-compose snippet (#1025)
* Remove microbadger badge as it is shutdown
  source: https://twitter.com/microscaling/status/1361054926399557644
  source: https://web.archive.org/web/20210409135814/https://microbadger.com/shutdown
* Remove trailing space that breaks yaml formatting
* Adjust indentation for docker-compose snippet
3 years ago
nils måsén 9bb8991a76
fix(digest): check container image info for nil (#1027) 3 years ago
nils måsén 7221704638
docs: link to versioned shoutrrr docs 3 years ago
nils måsén ea300b7a7f
ci: fix version in non-dev dockerfile 3 years ago
nils måsén 8b7b7d3b9b
ci: fix version in dev dockerfile 3 years ago
nils måsén 45dbfcade8
ci: add executable bit to build (#1006) 3 years ago
nils måsén 2f33620d2d
ci: build latest-dev with script (#1005)
currently `latest-dev` package is not built with version set and displays `v0.0.0-unknown`
3 years ago
Armando Lüscher e396711ae1
docs: fix note paragraph on Arguments page (#1001) 3 years ago
nils måsén e3dd8d688a
Session report collection and report templates (#981)
* wip: notification stats

* make report notifications optional

* linting/documentation fixes

* linting/documentation fixes

* merge types.Container and container.Interface

* smaller naming/format fixes

* use typed image/container IDs

* simplify notifier and update tests

* add missed doc comments

* lint fixes

* remove unused constructors

* rename old/new current/latest
3 years ago
nils måsén d0ecc23d72
docs: fix markdown lint issues (#995)
* fix list indents in notifications
* fix missing lang tag
* fix list indent and extra newlines
* further indentation experimentation
* fix remark lint-recommend warnings
3 years ago
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.
3 years ago
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
3 years ago
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
4 years ago
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>
4 years ago
zenjabba 4e7b1e78dc
Update index.md (#976)
Fix up formatting for docker-compose.yml
4 years ago
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
4 years ago
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
4 years ago
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>
4 years ago
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
4 years ago
nils måsén e308521a95
docs: fix more auto-format casualties (#943) 4 years ago
nils måsén 0c53b7121e
ci: move docs to separate action (#942) 4 years ago
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
4 years ago
nils måsén cc3ff5a588 fix more spelling mistakes 4 years ago
nils måsén ef4873b166 fix goreleaser GHCR login 4 years ago
nils måsén 692f66bace fix goreleaser tags for ghcr.io 4 years ago
nils måsén d0148ab796
fix manifest creation in release job 4 years ago
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
4 years ago
nils måsén fdf6e46e7b
fix: use default http transport for head (#926)
note: still disables TLS verification to enable use with local regisitries
4 years ago
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>
4 years ago
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>
4 years ago
nils måsén 6f281b727a
feat: update shoutrrr to v0.4.4 (#914) 4 years ago
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>
4 years ago
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>
4 years ago
Simon Aronsson 058e3c6d48
Update bug_report.md 4 years ago
Simon Aronsson 028f19ac47
Move token logs to trace 4 years ago
Simon Aronsson 6a7e5a959b
Create SECURITY.md 4 years ago
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>
4 years ago
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
4 years ago
nils måsén 4142f7966a
fix: move notify URL to trace log (#907) 4 years ago