diff --git a/README.md b/README.md index c37ce17..dc79d89 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,25 @@ # lookbuilding +_WIP_ Scuffed lookalike of watchtower -This project will, when triggered by an http request, -scan and update all properly annotated containers. +This project will, when triggered by an http request, scan the +docker registry and update all properly annotated containers. Add one of the following labels to your container to have lookbuilding update it. -``` +```sh +# only update to newer images with the same tag lookbuilding.mode = same_tag + +# only update to images with a newer semver version tag lookbuilding.mode = semver_major + +# only update to images with a newer semver version tag +# but with the same major version lookbuilding.mode = semver_minor + +# only update to images with a newer semver version tag +# but with the same major & minor version lookbuilding.mode = semver_patch ``` diff --git a/internal/pkg/versioning/mode.go b/internal/pkg/versioning/mode.go index 95b3cf5..6a837aa 100644 --- a/internal/pkg/versioning/mode.go +++ b/internal/pkg/versioning/mode.go @@ -1,7 +1,6 @@ package versioning import ( - "fmt" "sort" l "hulthe.net/lookbuilding/internal/pkg/logging"