From 8cd15a3404a5aebbf655c02f7d3e69443f581e4c Mon Sep 17 00:00:00 2001 From: Albert Salim Date: Sat, 20 Oct 2018 21:26:16 +0800 Subject: [PATCH] doc: Update doc for image templates Updated docker documentation to use `image_templates`. Added documentation on publishing to multiple registries using `image_templates` Added deprecation notices on `docker.image` and `docker.tag_templates` --- www/content/deprecations.md | 50 +++++++++++++++++++++++++++- www/content/docker.md | 66 ++++++++++++++++++++++++------------- 2 files changed, 93 insertions(+), 23 deletions(-) diff --git a/www/content/deprecations.md b/www/content/deprecations.md index aac54bddf..2b28d586e 100644 --- a/www/content/deprecations.md +++ b/www/content/deprecations.md @@ -11,7 +11,55 @@ Deprecate code will be removed after ~6 months from the time it was deprecated. # Active deprecation notices -No active deprecation notices at this time. +## docker.image + +> since 2018-10-20 + +This property was deprecated in favor of more flexible `image_templates`. +The idea is to be able to define several images and tags using templates instead of just one image with tag templates. +This flexibility allows images to be pushed to multiple registries. + +Change this: + +```yaml +dockers: +- image: foo/bar + tag_templates: + - '{{ .Tag }}' +``` + +to this: + +```yaml +dockers: +- image_templates: + - 'foo/bar:{{ .Tag }}' +``` + +## docker.tag_templates + +> since 2018-10-20 + +This property was deprecated in favor of more flexible `image_templates`. +The idea is to be able to define several images and tags using templates instead of just one image with tag templates. + +Change this: + +```yaml +dockers: +- image: foo/bar + tag_templates: + - '{{ .Tag }}' +``` + +to this: + +```yaml +dockers: +- image_templates: + - 'foo/bar:{{ .Tag }}' +``` +