Skip to content

Commit

Permalink
Examples: update to include required key 'name'
Browse files Browse the repository at this point in the history
  • Loading branch information
bossm8 committed Jul 16, 2023
1 parent 7020ec6 commit 4a27e32
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion examples/combinations/variants.yml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down
3 changes: 2 additions & 1 deletion examples/complex/variants.yml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
3 changes: 2 additions & 1 deletion examples/simple/variants.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
variants:

- image:
- name: example
image:
name: ubuntu
tag: unmodified
from_image: ubuntu:latest

0 comments on commit 4a27e32

Please sign in to comment.