From 4a27e32bfea9fa69bf22dee917d843c7d142a4d8 Mon Sep 17 00:00:00 2001 From: Boss Marco Date: Sun, 16 Jul 2023 18:53:19 +0000 Subject: [PATCH] Examples: update to include required key 'name' --- examples/combinations/variants.yml.tpl | 3 ++- examples/complex/variants.yml.tpl | 3 ++- examples/simple/variants.yml | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/examples/combinations/variants.yml.tpl b/examples/combinations/variants.yml.tpl index 6ded998..88d9123 100644 --- a/examples/combinations/variants.yml.tpl +++ b/examples/combinations/variants.yml.tpl @@ -2,7 +2,8 @@ variants: {{ range $a := $.package_a.versions }} {{ range $b := $.package_b.versions }} - - image: + - name: "{{ $a }}-{{ $b }}" + image: name: combinations tag: {{ printf "a-%s-b-%s" $a $b }} package_a_version: "{{ $a }}" diff --git a/examples/complex/variants.yml.tpl b/examples/complex/variants.yml.tpl index 0926b65..0b330d8 100644 --- a/examples/complex/variants.yml.tpl +++ b/examples/complex/variants.yml.tpl @@ -3,7 +3,8 @@ variants: {{- range .images }} {{- $i := . }} {{ range .versions }} - - image: + - name: "{{ $i.name }}-{{ .version }}" + image: name: {{ $i.name }} tag: {{ .version }} from_image: {{ $.from_image }} diff --git a/examples/simple/variants.yml b/examples/simple/variants.yml index e43871e..4f67b7d 100644 --- a/examples/simple/variants.yml +++ b/examples/simple/variants.yml @@ -1,6 +1,7 @@ variants: - - image: + - name: example + image: name: ubuntu tag: unmodified from_image: ubuntu:latest \ No newline at end of file