From c01d192e08ddaeb493f83e4a70184ced2688207e Mon Sep 17 00:00:00 2001 From: Joakim Hulthe Date: Wed, 11 Nov 2020 01:48:20 +0100 Subject: [PATCH] Update readme --- README.md | 16 +++++++++++++--- internal/pkg/versioning/mode.go | 1 - 2 files changed, 13 insertions(+), 4 deletions(-) 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"