Defaults configuration¶
Overview¶
Defaults allow specifying default values for any configuration that is typically set at the image level using labels or annotations depending on the provider. Any of them will take precedence or be merged over defaults.
defaults:
watchRepo: false
notifyOn:
- new
- update
maxTags: 10
sortTags: reverse
includeTags:
- latest
excludeTags:
- dev
metadata:
foo: bar
Configuration¶
watchRepo
¶
Watch all tags of this container image (be careful
with this setting). (default false
)
Config file
defaults:
watchRepo: false
Environment variables
DIUN_DEFAULTS_WATCHREPO
notifyOn
¶
List of status to be notified. Can be one of new
or update
.
(default new,update
)
Config file
defaults:
notifyOn:
- new
- update
Environment variables
DIUN_DEFAULTS_NOTIFYON=new,update
maxTags
¶
Maximum number of tags to watch. 0
means all of them. (default 0
)
Warning
Only works if watch repo is enabled.
Config file
defaults:
maxTags: 10
Environment variables
DIUN_DEFAULTS_MAXTAGS=10
sortTags
¶
Sort tags method. Can be one of
default
, reverse
, semver
, lexicographical
. (default reverse
)
Warning
Only works if watch repo is enabled.
Config file
defaults:
sortTags: reverse
Environment variables
DIUN_DEFAULTS_SORTTAGS=reverse
includeTags
¶
List of regular expressions to include tags. Can be useful if watch repo is enabled.
Config file
defaults:
includeTags:
- ^\d+\.\d+\.\d+$
Environment variables
DIUN_DEFAULTS_INCLUDETAGS=^\d+\.\d+\.\d+$
excludeTags
¶
List of regular expressions to exclude tags. Can be useful if watch repo is enabled.
Config file
defaults:
excludeTags:
- dev
Environment variables
DIUN_DEFAULTS_EXCLUDETAGS=dev
metadata
¶
Additional metadata that can be used in notification template
Config file
defaults:
metadata:
foo: bar
Environment variables
DIUN_DEFAULTS_METADATA_FOO=bar
Created: 2023-09-23 15:59:59