Skip to content

Commit

Permalink
docs: Update documentation with custom data in image section
Browse files Browse the repository at this point in the history
Signed-off-by: Kim Christensen <kimworking@gmail.com>
  • Loading branch information
kichristensen committed Aug 25, 2024
1 parent faf648a commit 3829380
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/content/docs/bundle/manifest/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,24 @@ A last note on `digest`. Taking the example of the library `nginx` Docker image
]
```

{{< callout type="info" >}}
Custom data in the `images` section is support from v1.2.0
{{< /callout >}}

It is possible to make the `images` section more dynamic by using [custom data](#custom). It is the only templating supported in the section.

```yaml
custom:
websvcDigest: "sha256:85b1a9b4b60a4cf73a23517dad677e64edf467107fa7d58fce9c50e6a3e4c914"
images:
websvc:
description: "A simple web service"
imageType: "docker"
repository: "jeremyrickard/devops-days-msp"
digest: "${ bundle.custom.websvcDigest }"
```

## Custom

The Custom section of a Porter manifest is intended for bundle authors to
Expand Down

0 comments on commit 3829380

Please sign in to comment.